> > Also, it is NOT unrealistic to expect perfect alternation.
>
> Find one pthreads expert who agrees with this claim. Post it to
> comp.programming.threads and let the guys who created the standard
> laugh at you. Scheduling is not a substitute for synchronization, ever.
I don't claim mastery over threads. But I have been programming with threads
for a very long time and am well aware of the way OS schedulers
work. In the example that Mohit posted, it is reasonable to expect
perfect alternation once both threads have started. And it certainly isn't
something to laugh at (even if it were wrong).
- Robert Guerra
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/