Re: Threads vs Processes

Поиск
Список
Период
Сортировка
Искать
От
Christopher Kings-Lynne
Тема
Re: Threads vs Processes
Дата
Msg-id
20030927131911.X15218-100000@houston.familyhealth.com.au
Ответ на
Список
Дерево обсуждения
Re: Threads vs Processes (was: NuSphere and PostgreSQL for window Claudio Natoli <claudio.natoli@memetrics.com>
Re: Threads vs Processes (was: NuSphere and PostgreSQL for window s) Tom Lane <tgl@sss.pgh.pa.us>
Re: Threads vs Processes Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Re: Threads vs Processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Threads vs Processes Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Re: Threads vs Processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Threads vs Processes Bruce Momjian <pgman@candle.pha.pa.us>
Re: Threads vs Processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Threads vs Processes Bruce Momjian <pgman@candle.pha.pa.us>
Re: Threads vs Processes Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Re: Threads vs Processes Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: Threads vs Processes Myron Scott <mkscott@sacadia.com>
Re: Threads vs Processes (was: NuSphere and PostgreSQL Manfred Spraul <manfred@colorfullife.com>
> > We really don't need threads to replace existing functionality. That
> > would be dog work.
>
> No, that's not the point at all.  The problem we are facing at the
> moment with the Windows port is lack of fork(), which means there's
> no way for separate-subprocess backends to inherit variable values
> from the postmaster.  Bruce has been trying to fix that by having the
> subprocesses somehow reload or re-deduce all those variables; which
> is messy, bug-prone, and probably race-condition-prone too.  In a
> threaded implementation it would maybe be relatively easy to initialize
> a new thread's TLS by copying the postmaster thread's TLS, in which case
> a whole pile of as-yet-unwritten Windows-only code won't be needed.

Kepp in mind though all the cool things that could be done if we had
thread capabilities.  eg. evaluating different subexpressings on
fdifferent cpuis for the one query, etc.

Chris


В списке pgsql-hackers по дате отправления
От: Christopher Kings-Lynne
Дата:
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: 2-phase commit
FAQ