[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [Fwd: [pthreads-devel] no more thread scheduling when waitpid in one thread]



Looking at the test case, what is expected is "fair" scheduling between
a 
thread and a process without any synchronization. While 1-1 may provide 
this behavior, I am dubious if this is what POSIX mandates or if the M:N
behavior is wrong. Using POSIX locks in an appropriate way in the test
case would guarentee the behavior either way.

Dave Howell 

-----Original Message-----
From: Ulrich Drepper [mailto:drepper redhat com] 
Sent: Thursday, November 28, 2002 6:28 PM
To: phil-list redhat com
Subject: Re: [Fwd: [pthreads-devel] no more thread scheduling when
waitpid in one thread]

Dan Kegel wrote:
> Hi folks,
> can someone try this test with nptl on a uniprocessor and report
> back the results?



This kind of code is no problem for a 1-on-1 implementation.

Read it as: no problems with LinuxThreads or NPTL on UP or SMP machines.
 Unless the kernel is broken only M-on-N implementations can have
problems with this.  It's just one of the many many corner cases one has
to think about and more importantly work around.  1-on-1 makes life so
much easier.


-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------



-- 
Phil-list mailing list
Phil-list redhat com
https://listman.redhat.com/mailman/listinfo/phil-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]