COMPSCI 377 Lecture Notes - Lecture 2: Parent Process, Child Process, Program Counter

93 views3 pages

Document Summary

Time sharing: the os runs one process, stops it, runs another one, etc. Policies: algorithms to ensure the best performance while switching processes. Changes data accessed or effected from the system during execution. How to handle interrupts e. g. displaying data on a monitor. Each os had its own design as there"s no perfect solution. Need to be flexible (portability and backwards compatibility) Reliable (small bugs could ruin the entire experience) Performance (user to kernel mode transfers are expensive) Tabs on a browser, databases, office apps, etc. + syscall is the parent process and it creates child processes. + createprocess() is very complex due to accounting for i/o, privilege, scheduling, etc. +create, destroy, wait, miscellaneous control (e. g. suspend/resume), and status functionalities. Load code and data to memory the address space of the process. Can be loaded eagerly (whole program) or lazily (only necessary pieces of code and data) Start the process by running the main routine.

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