InterviewSolution
Saved Bookmarks
| 1. |
What is busy spinning? |
|
Answer» Busy Spinning, also known as Busy-waiting, is a technique in which one thread WAITS for some condition to happen, without calling wait or sleep methods and releasing the CPU. In this condition, one can pause a thread by MAKING it run an empty loop for a CERTAIN time period, and it does not even give CPY CONTROL. Therefore, it is used to preserve CPU CACHES and avoid the cost of rebuilding cache. |
|