commit | efddf81c171823091af8777b22e6386abc05a7ee | [log] [tgz] |
---|---|---|
author | Jan Stancek <jstancek@redhat.com> | Thu Oct 03 10:22:50 2013 +0200 |
committer | Jan Stancek <jstancek@redhat.com> | Thu Oct 17 09:55:29 2013 +0200 |
tree | 80ca020e0940e8ad90cf7d1389b99863fffdf52d | |
parent | a2b2b352c9af90c27b58a5e6bcc4dfb8022f3b1a [diff] |
pthread_attr_setschedpolicy/2-1.c: bind threads to single CPU To make sure that threads are blocked on mutex, bind all to single CPU. Because they all use SCHED_FIFO policy with main thread having the lowest priority, main will progress only after three created threads block on mutex. Signed-off-by: Jan Stancek <jstancek@redhat.com>