Date: Sat, 26 Apr 2003 00:52:20 -0400 (EDT) From: Daniel Eischen <eischen@pcnet1.pcnet.com> To: David Xu <davidxu@freebsd.org> Cc: freebsd-threads@freebsd.org Subject: Re: SMPing libpthread Message-ID: <Pine.GSO.4.10.10304260043470.25254-100000@pcnet1.pcnet.com> In-Reply-To: <200304250242.h3P2g2F6085399@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Apr 2003, David Xu wrote: > I have put a patch to enable userland support SMP scheduling. > http://people.freebsd.org/~davidxu/libpthread_smp.diff > The patch works on my SMP machine, but not fully tested, > and I will work on idle kses stuffs. At least, it seems > the SMP speed is not slower than UP. :-) David, I noticed that we hold the scheduling lock before and after calling the scheduler. Is this necessary? And if so, is it necessary to hold hold it after return from the scheduling switch? One you're in the scheduler, and choose another thread (releasing the lock after doing so), shouldn't you be able to switch to it without having the lock? -- Dan Eischen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10304260043470.25254-100000>