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