|
Hi
Lalit,
I my
opinion conditional variables along with mutexes are the only mean by
which you can control the ordering of the threads. You are right that it is the
schduler which controls the allocation of CPU to the processes. But if you are
doing a "wait" on the condition variable in a thread, it will not be acquire the
CPU unless a conditional "signal" is sent to
that thread.
Regards
Prabhat
|
- [ilugd]: order of execution of threads Lalit Kumar Bhasin
