Ch. 4 PPT Flashcards
What is a unit of dispaching?
Thread/lightweight process
Unit of resource ownership
Process/task
What is multithreading?
The ability of an OS to support multiple, concurrent paths of execution within a single process
What is the single threaded approach?
There is a single thread of execution per process. Really, the concept of a thread is not recognized.
What is the multithreaded approach?
A process that spawns multiple threads, like the JRE
Where is the process image stored?
The virtual address space
What does a process have protected access to?
Processors, other processes, files, and I/O resources
What are some benefits of threads?
Takes less time than making/terminating a process, faster switching between threads, increases efficency/communication between programs
In a single-user system, what are threads good for?
Asynchronous processing, faster execution, and modular programs
Where is execution information stored?
In a thread-level data structure.
What happensto threads if a process is suspended/terminated?
All threads are suspended or terminated for that process
What are the key thread states?
Running, ready, and blocked
What are the thread change states?
Spawn, block, unblock, finish
How are threads synchronized?
All threads of a process share an address space/resources/ If a resource is altered, it affects all threads in the process
How are user level threads handled?
Managed by application, and many-to-one mappings