Mod 3: Semaphores Flashcards
1
Q
What is “busy waiting”?
A
A synchronization technique where a thread is spinning in a loop waiting for a resource to become available
2
Q
What is a semaphore?
A
Shared variable >=0 which is shared between threads
3
Q
What is a semaphore used for?
A
Semaphores are used to synchronize access to shared resources
4
Q
Which to atomic operations does semaphores use?
A
Wait( )
Signal( )