Re: Threads - Mailing list pgsql-hackers

From mlw
Subject Re: Threads
Date
Msg-id 3E30476B.9050303@mohawksoft.com
Whole thread Raw
In response to Re: Threads  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Greg Copeland wrote:<br /><blockquote cite="mid1043344940.2714.4.camel@mouse.copelandconsulting.net" type="cite"><pre
wrap="">OnThu, 2003-01-23 at 09:12, Steve Wampler wrote: </pre><blockquote type="cite"><pre wrap="">On Sat, 4 Jan 2003,
ChristopherKings-Lynne wrote:   </pre><blockquote type="cite"><pre wrap="">Also remember that in even well developed
OS'slike FreeBSD, all a
 
process's threads will execute only on one CPU.     </pre></blockquote><pre wrap="">I doubt that - it certainly isn't
thecase on Linux and Solaris.
 
A thread may *start* execution on the same CPU as it's parent, but
native threads are not likely to be constrained to a specific CPU
with an SMP OS.   </pre></blockquote><pre wrap="">
You are correct.  When spawning additional threads, should an idle CPU
be available, it's very doubtful that the new thread will show any bias
toward the original thread's CPU.  Most modern OS's do run each thread
within a process spread across n-CPUs.  Those that don't are probably
attempting to modernize as we speak</pre></blockquote> AFAIK, FreeBSD is one of the OSes that are trying to modernize.
LastI looked it did not have kernel threads.<br /><blockquote
cite="mid1043344940.2714.4.camel@mouse.copelandconsulting.net"type="cite"><pre wrap=""> </pre></blockquote> 

pgsql-hackers by date:

Previous
From: Didier Moens
Date:
Subject: Re: Foreign key wierdness
Next
From: "Eduardo Stern"
Date:
Subject: Cast and Schemas don't work as expected