From: | Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com> |
---|---|
To: | 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, pgsql-hackers-win32(at)postgresql(dot)org |
Subject: | Threads vs Processes (was: NuSphere and PostgreSQL for windows) |
Date: | 2003-09-25 14:12:32 |
Message-ID: | A02DEC4D1073D611BAE8525405FCCE2B027F59@harris.memetrics.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-hackers-win32 |
Tom Lane writes:
> BTW, I've been wondering lately if we'd not be better off to look at
> using threading in the Windows port, if it'd help us get around the
> fork/exec data transfer problem. I'm not sure that it would,
> mind you, but if it would give an answer it might be a lot less painful
than
> solving the data transfer problem directly.
Some coincidence. Was just about to post a message to the hackers-win32
list, asking if anyone was considering using threads for the Windows port,
and why/if sub-processes were the preferred option (from the TODO items on
http://momjian.postgresql.org/main/writings/pgsql/win32.html mention
CreateProcess).
Having looked at the code for the first time over the past day and a half,
I'm quite sure that using threads is the easier option (and, generally,
replacing fork/exec with winthreads is easier than using CreateProcess).
FWIW, I've got a threaded version of the WIN32_DEV branch more or less
"running" (it is a terrible hack job, so NO, no patches... yet :-), as a
proof of concept. Still a work in progress (ok, I've qualified it enough),
but it is showing enough promise to convince me that threading is the way to
go for the Win32 port.
Anyone else experienced with the code base care to weigh in on this?
Cheers,
Claudio
---
WE HAVE MOVED - PLEASE NOTE OUR NEW CONTACT DETAILS:
THE BASEMENT, 33 EWELL STREET, BALMAIN NSW 2041
TEL: +61 2 9555 1544 FAX: +61 2 9555 6911
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
http://www.memetrics.com/emailpolicy.html
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2003-09-25 14:14:50 | Re: [pgsql-www] NuSphere and PostgreSQL for windows |
Previous Message | Tom Lane | 2003-09-25 14:07:39 | Re: NuSphere and PostgreSQL for windows |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-25 14:17:04 | Re: Threads vs Processes (was: NuSphere and PostgreSQL for windows) |
Previous Message | Jason Tishler | 2003-09-17 11:35:37 | Re: [HACKERS] Win32 native port |