2015-02-26 21:53 GMT+08:00 Marco van de Voort <mar...@stack.nl>:

>
> No, basically a sleeping thread is marked in the scheduler as "do not
> schedule for nn
> ticks". The thread doesn't run to evaluate if it should contiue. That is
> the
> scheduler/kernel's task.
>
> ​That's even better. And the key point is, after nn ticks, it is
**AUTOMATICALLY** re-scheduled,
without the need of knowledge of other threads/processes running on the
system!

​This is the effect of a thread voluntarily gives up its cpu share, but not
let other thread to control its "fate". ​
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to