Question: write a micro benchmark (program) to evaluate performance of a spinlock. the micro benchmark should support a configurable number of threads. study the performance as
write a micro benchmark (program) to evaluate performance of a spinlock. the micro benchmark should support a configurable number of threads. study the performance as well as its fairness. the performance can be measured by the time to complete the program if each thread attempts a fixed number of lock acquisitions. fairness can be measured by comparing the number of successful lock acquisitions by each thread if the total number of lock acquisitions is fixed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
