10-04-2017, 07:51 PM
CS 194: Distributed Systems Processes, Threads, Code Migration
Problem
Escape the curse of blocking!
A spreadsheet should be able to recompute the values while waiting for user input
A file server should be able to serve other clients while waiting a disk read to complete
Solutions
Multi-processing
Multi-threading
One process + event driven programming
What is a Process?
Execution context
Program counter (PC)
Stack pointer (SP)
Data registers
Code
Data
Stack
For more information about this article,please follow the link:
http://googleurl?sa=t&source=web&cd=1&ve...rkeley.edu%2F istoica%2Fclasses%2Fcs194%2F05%2Fnotes%2F4-ProcThread.ppt&ei=0kGwTLf4IcOAlAeuk-zbBA&usg=AFQjCNH_L1UIp1yWaH8ZID5DMSESPUflYg