Ch. 5 PPT Flashcards
What is OS design concerned with in terms of multiple processes?
The management of processes and threads
What is multiple applications?
Processing time is shared among active applications
What are structured applications?
An extension of modular design and structured programming
What is operating system structure?
The OS implemented as a set of processes and threads
What are interleaving and overlapping?
Concurrent processing
What is uniprocessor?
The relative speed of execution of processes cannot be predicted
What makes concurrency difficult?
Sharing/allocating resources, programming errors
What is a race condition?
When multiple threads are reading and writing data items
How should the OS deal with concurrency?
Try to allocate/deallocate resources, protect against race conditions
What is resource competition?
When concurrent processes are fighting over same resource, such as IO devices and memory and such
What is a critical resource?
One that is non-sharable. Used by a critical section of a process
What is deadlock?
Concurrent programs are completing for a critical resource that one might need at the same time as another resource
What is starvation?
When things need periodic access to the same resource
What is mutual exclusion?
When a process halts, it cannot interfere with other processes. No deadlock, and no denial to critical resources that are not in use
How can you guarantee mutual exclusion in a hardware level?
Disable interrupts. Does not work in multiprocessor environments. Lower efficiency