c++ - default scheduled policy: omitting use of pthread_attr_setschedpolicy -


what happen if donot set scheduling policy attribute of thread attributes object pthread_attr_setschedpolicy? if directly go ahead , create , cancel thread main loop? in case system needs pthread_attr_setschedpolicy set before thread creation application? if leave scheduler policy unset in case system requires application set that?

the default policy of thread applicable in case.

check this. posix thread scheduling policies

for more details information of kernel level can check following link

http://oreilly.com/catalog/linuxkernel/chapter/ch10.html


Comments