in Operating System
5,070 views
0 votes
0 votes
in Operating System
by
5.1k views

2 Answers

2 votes
2 votes

ohhh i was wrong basically wht i read was just a small example of spin lock . the exact definition is here .
spinlock is a lock which causes a thread trying to acquire it to simply wait in a loop ("spin") while repeatedly checking if the lock is available. Since the thread remains active but is not performing a useful task, the use of such a lock is a kind of busy waiting.. 

so its kind of busy waiting

0 votes
0 votes

Spin locks are kernel-defined, kernel-mode-only synchronization mechanisms. https://msdn.microsoft.com/en-us/library/windows/hardware/ff548114(v=vs.85).aspx

While busy waiting is not limited to kernel only, busy waiting is a broader scope.

Related questions