Concurrency Flashcards
A program is a _______ collection of instructions
passive
A program needs a distinct ______ point and _______ point
- entry
- exit
What is an instance of a computer program that is being executed?
Process
What is the minimum number of threads in a process?
1
What are the 4 states of a process?
- Running
- Ready
- Suspended
- Blocked
A process is in the _______ state when it is active on the computer.
Running
A process is in the _______ state when it could run, but isn’t currently.
Ready
A process is in the _______ state when it is not allowed to run and not allowed to wait.
Suspended
A process is in the _______ state when it is waiting.
Blocked
Can a process share virtual memory with another process?
No
A shell is a process that provides an interface to the _______ functions.
Operating System
What is known as a distinct path of execution within a process?
Thread
What’s good about Win32 threads?
- Low level
- Efficient
- Customizable
What’s bad about Win32 threads?
- C-style arrays
- Too many steps
- Windows only
What’s wrong with C++ 11 threads?
No access to security or stack
What’s a race condition?
Two signals racing each other to influence the output first
What is a deadlock?
Two or more competing actions are waiting for the other to finish.
What is the oldest type of computer multitasking?
Multiprogramming
In multiprogramming, processes are switched when a process waits for a _______.
Peripheral
In time sharing, processes are switched on a _______.
Timer
Which type of multitasking launched the GUI age?
Cooperative Multitasking
What is the most recent type of multitasking?
Symmetric Multiprocessing
In symmetric multiprocessing all dynamic memory is _______
Shared