c - What does sched_yield do in this case? -


if have process threads running on different cores, sched_yield in case? relinquished , issued again? because see sched_yield not cause thread calling it, wait cycles @ all, seems call not going kernel.

the man page says:

if calling thread thread in highest priority list @ time, continue run after call sched_yield().

so if there's nothing more important run, function nothing.


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -