> > > I don't know about the "bsd" or whatever way. If you're doing real
> > > parallel programming and want real performance, you'll use a test-and-set
> > > like function that uses the low-level machine instructions for same.
> > 
> > That is exacly what I'm looking for! I found it to be overkill to
> > involve the kernel just because I wanted to have a context switch during
> > the "test-and-set".
> 
> Precisely how do you expect to "have a context switch" without "involving
> the kernel"?

If your threads are implemented wholly in userland, you can easily do a
context switch w/out involving the kernel.  Our current pthreads library
does this now, and the JDK's internal (green) threads implementation
does it as well.



Nate


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to