in Semaphores in Plan 9 [1] a test is described comparing semaphore-based locks to tas-based spinlocks. the paper says they ran "doug's power series program" using the different lock types in libthread for channels. i was trying to reproduce the results in the test, and my naive attemps don't fare well for semaphores.
so, is the test code available anywhere? or has anyone written a comparable benchmark which favors semaphore-based locks? [1] http://doc.cat-v.org/plan_9/IWP9/2008/semaphores.pdf
pgpdFDOEoAIqe.pgp
Description: PGP signature
