Why use a queued spin lock in preference to a generic spin lock?

What will be an ideal response?


A queued spin lock enforces FIFO ordering of requests and is more efficient than a
normal spin lock, because it reduces the processor-to-memory bus traffic associated with the
spin lock.With a normal spin lock, a thread continually attempts to acquire the lock by executing
a test-and-set instruction on the memory line associated with the spin lock. This creates
bus traffic on the processor-to-memory bus. With a queued spin lock, a thread that
releases the lock notifies the next thread waiting for it.Threads waiting for queued spin locks
do not create unnecessary bus traffic by repeating test-and-set. Queued spin locks also
increase fairness by guaranteeing FIFO ordering of requests, because the releasing thread
uses a queue associated with the spin lock to notify the appropriate waiting thread.Windows
XP supports both spin locks (for legacy compatibility) and queued spin locks, but recommends
the use of the latter.

Computer Science & Information Technology

You might also like to view...

Which of the Java strings represent the regular expression ,\s*?

a. "\,\s\*" b. ",\\s*" c. ",\\s\\*" d. ".\\s\*"

Computer Science & Information Technology

The ____________________ cell is the cell you can currently edit or modify.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Processes, hierarchies, cycles, lists, and relationships can be illustrated using PowerPoint's ________ graphics

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is part of the onboarding phase of the employee lifecycle?

A. The employee is added to the organization's payroll. B. The employee is provided with a username or smart card. C. A background check is conducted for the employee. D. The employee expectations of privacy are determined.

Computer Science & Information Technology