Subject: Re: silly question again
To: David Maxwell <david@vex.net>
From: Matthew Mondor <mmondor@linuxguru.net>
List: port-i386
Date: 12/29/2000 05:50:14
On Fri, Dec 29, 2000 at 10:07:46PM -0500, David Maxwell wrote:
> 
> Hun? How can two threads execute simultaneously on a single CPU? (On ANY OS)
> 

That is right. However on linux and FreeBSD they appear to run simultaniously
even on a single CPU (kernel spinning it).

> > Moreover, if an application uses fork() or make_daemon() to detach and
> > become a daemon, pthreads calls would no longer work at all. Also note
> > that all NetBSD-native daemons use fork() instead
> 
> By make_daemon, you mean daemon(3) ?  It's just a convienience function 
> that calls fork() anyway, so why does that matter?
> 

Yes it also internally uses fork()... The point was that any process calling
fork() cannot use pthreads properly under NetBSD...

Matt