Chapter 4 (Threads) Flashcards
What are the two main characteristics of a process?
Resource ownership
Scheduling/execution
T/F A processes main characteristics could be split apart and managed separately
T
What do we get if we split the two main characteristics of a process?
Process: owns resources
Thread: Executes
Refers to multiple threads of execution in a single process
Multithreading
What is a process called that is not multithreaded?
Single-threaded
How many threads does MS-DOS support?
1
T/F Traditional UNIX supports multiple user processes but only supports one thread per process
T
What modern OS’s support multiple threads per process?
Solaris and Windows
What does a process have in a multithreading context?
Virtual address space for the process image
Resource ownership
What does a thread have in a multithreading context?
Thread execution state
Thread context
Stack
Local variables
Shared access to memory and resources of its process
T/F In a multithreaded process model, each thread shares the user stack and kernel stack
F, they each have their own
What are some benefits of threads?
Faster to create
Faster to terminate
Faster to switch between
Communication between threads is more efficient
T/F Threads make program organization harder
F, they can make it easier
“word processor, thread to periodically save to disk” is an example of:
Asynchronous processing
overlapping activity is an example of:
Speed-up execution