Is there any difference between busy waiting and spinlock
What is the meaning of this statement
"advantage of a spinlock is that no context switch is required when a process must wait on lock, and a context switch may takes considerable time Thus when locks are expected to be held for short time spinlock are useful"
I can't understand this statement
Please tell with example..