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