--- trunk/livstidsfanger.c 2014/11/09 15:30:18 14 +++ trunk/livstidsfanger.c 2014/11/19 19:32:53 15 @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -181,6 +182,10 @@ noreturn void *livstidsfange(void *arg) printf("livstidsfange %2zu låser opp mutex\n", i + 1); pthread_mutex_unlock(&mutex); printf("livstidsfange %2zu har låst opp mutex\n", i + 1); + +#ifdef _POSIX_PRIORITY_SCHEDULING + sched_yield(); +#endif } // while } // livstidsfange()