P10 lab code added
This commit is contained in:
1 parent
c7d4ec972e
commit
382018f539
40 files changed
+1917
No files matched your search
@@ -0,0 +1,7 @@
|
||||
For Mac users
|
||||
|
||||
"pthread_mutex_lock(&lock)" is slow on MACs compared to Linux:
|
||||
|
||||
use instead: "while (pthread_mutex_trylock(&lock) > 0) {} ;"
|
||||
|
||||
which implements a spin lock
|
||||
Reference in new issue
Block a user