CSE 131 Chapter Notes - Chapter 2.2: Memory Address, Automatic Block Signaling, System Call
Document Summary
Share an address space and all of its data among themselves in the same process. Threads are more lightweight than processes so easier to create and destroy. Threads speed up an application when there is substantial i/o. Threads are useful on systems with multiple cpus. Dispatcher: thread that reads incoming requests for work from the network. It chooses an idle worker thread and hands it the request and moves it from blocked state to ready state. Each computation has a saved state and there exists some set of events that can occur to change the state. Multithreaded process is running on a single cpu system. Cpu switches rapidly back and forth among threads, providing the illusion that the threads are running in parallel. Since every thread can access every memory address within the process" address space, one thread can read, one can write, etc. No protection between threads because it"s unnecessary since a process is owned by a single user.