Re: CreateProcess vs Create Thread
От | Steve Tibbett |
---|---|
Тема | Re: CreateProcess vs Create Thread |
Дата | |
Msg-id | 3F61636001A863FD@mta3.wss.scd.yahoo.com> (added by postmaster@mail.san.yahoo.com) обсуждение исходный текст |
Ответ на | CreateProcess vs Create Thread ("Joshua D. Drake" <jd@commandprompt.com>) |
Список | pgsql-hackers-win32 |
CreateProcess has to come first since all the work that happens for the multithreaded version also has to happen for the CreateProcess version, and it's just natural that it will come first. It makes a lot of sense for Postgres to get the CreateProcess version working and stable before embarking on threads - Win32 and threading are two separate and mostly unrelated tasks, but threading on Win32 can't happen until Win32 is stable. Just my two cents... - Steve -----Original Message----- From: pgsql-hackers-win32-owner@postgresql.org [mailto:pgsql-hackers-win32-owner@postgresql.org] On Behalf Of Joshua D. Drake Sent: November 13, 2003 12:30 PM To: pgsql-hackers-win32@postgresql.org Subject: [pgsql-hackers-win32] CreateProcess vs Create Thread Hello, O.k. there has been a lot of discussion in regards to what the best method to take with PostgreSQL Win32 is. It seems that the community is set on using CreateProcess. If this is the case I have a couple of further questions: 1. Are we just a bunch of Unix coders trying to develop a product for Win32 or are there any people a part of the Win32 port project that actually have REAL, hardcore experience coding at the system level for Win32? I am not trying to be an antagonist but I it is a legitamate question. 2. Have we built a test case? For example: We have a client that connects to a server. For every connection we start a new process and write 1k to disk from the client. Connect in varying degrees from 5 connection to say 500 connections. Do it with CreateProcess and the with CreateThread... Time the difference, and review the load on the server during the tests... What is the difference? Maybe it is nominal enough not to worry about it... Maybe it's not. Sincerely, Joshua D. Drake -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC - S/JDBC Postgresql support, programming, shared hosting and dedicated hosting. +1-503-222-2783 - jd@commandprompt.com - http://www.commandprompt.com PostgreSQL.Org - Editor-N-Chief - http://www.postgresql.org ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
В списке pgsql-hackers-win32 по дате отправления: