Chapter 5 (Concurrency) Flashcards
What does concurrent mean?
Happening at the same time
What kinds of systems does concurrency arise in?
Multiprogramming
Multiprocessing
Distributed processing
What’s the term for “Multiple processes on a uniprocessor system”?
Multiprogramming
What’s the term for multiple processes on a multiprocessor system?
Multiprocessing
What contexts does concurrency occur in?
Multiple applications
Structured applications
OS Structure
T/F The relative order of execution of concurrent processes is unpredictable
T
What is it called when the outcome of two processes accessing the same variable depends on their relative order of execution?
Race condition
When does a race condition occur?
When multiple processes or threads read and write data items so that the final results depends on the order of execution
What is the term for “A process competing for a resource never receives it due to scheduling of other processes”?
Starvation
If you have no mutual exclusion issue, can you have a deadlock?
Yes, a pair may be deadlocked waiting for the other to send a message
What are the three general approaches for achieving mutual exclusion?
Software
Hardware
Operating system or language
What is a coroutine?
Pass control back and forth
What are the problems with competition-style process interaction?
Mutual exclusion
Deadlock
Starvation
What are the problems with sharing-style process interaction?
Mutual exclusion
Deadlock
Starvation
Data coherence
What are the problems with communication-style process interaction?
Deadlock
Starvation