Date: Mon, 29 Mar 2004 22:38:00 -0500 (EST) From: Daniel Eischen <eischen@vigrid.com> To: Niall Douglas <s_sourceforge@nedprod.com> Cc: freebsd-threads@freebsd.org Subject: Re: GDB 6.0 and FreeBSD threads Message-ID: <Pine.GSO.4.10.10403292233000.12734-100000@pcnet5.pcnet.com> In-Reply-To: <4068DA49.24401.5BE9BE4@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Mar 2004, Niall Douglas wrote: > On 29 Mar 2004 at 23:41, Petri Helenius wrote: > > > Why not just run all threads SCOPE_PROCESS? Then the system will do > > that for you. > > The pthreads implementations I've seen won't utilise more than one > processor unless it's SCOPE_SYSTEM. The obviates the reason most > people use threads, hence the success of the 1:1 model which is a > very blunt axe. That's untrue for libpthread. It creates automatically creates one KSE for each CPU. You can increase the number of CPUs by setting sysctls kern.threads.debug=1 and raising kern.threads.virtual_cpu. It also respects pthread_setconcurrency, but you're limited to kern.threads.virtual_cpu. Yes, all process scope threads run in these KSES. -- Dan Eischen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10403292233000.12734-100000>