|
Hi,
I understand why you want to know, but the real answer is you can't know how they are scheduled.
Any software that relies on or tries to predict which thread runs first, and when, is inherently broken by design.
You have to use external means to synchronize your threads in a manner consistent with your software's design.
I know everyone that starts learning to write threaded code tries to do this, but it always "mostly" or "just barely" works "most of the time".
When you move your software to a different platform with a different kernel, or to a computer with multiple processors, then it mysteriously stops working.
|