CSE 131 Chapter Notes - Chapter 2.2: Memory Address, Automatic Block Signaling, System Call

52 views3 pages
28 Jan 2019
School
Course
Professor

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents