POSIX thread scheduling policies

2019-09-15 03:17发布

问题:

what is the difference between PTHREAD_INHERIT_SCHED and PTHREAD_EXPLICIT SCHED? By default which sched will be there and how to set it?

回答1:

By default it took PTHREAD_EXPLICIT_SCHED

The difference is in the name itself: INHERIT is inherited from parent, explicit is declared explicitly



标签: posix