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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!