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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a semaphore?

A

Shared variable >=0 which is shared between threads

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a semaphore used for?

A

Semaphores are used to synchronize access to shared resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which to atomic operations does semaphores use?

A

Wait( )
Signal( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly