Pthreads has safe synchronization using yields
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 19 Apr 2010 23:48:40 +0000 (16:48 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:43 +0000 (17:35 -0700)
commitb90f75e0ee9d5aca87e8a7274ef60b8d2a3a8ac3
treecc3330ee89fbd50c0d8c266cd1f1767ebd5284a5
parentc6058717bd5228b17f9198943e67691f775da7dc
Pthreads has safe synchronization using yields

The mutexes and barriers will spin for a little and yield if they don't
win (adaptive mutexes) to avoid deadlock/horrible inefficiences if the
lock holder or slow one is descheduled.  pthread_join() also won't spin
anymore.
tests/pthread_test.c
user/include/pthread.h
user/parlib/pthread.c