CS345 03 - Processes

CS345 03 - Processes - Processes Chapter 3 Topics to Cover...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Processes Chapter 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
BYU CS 345 Chapter 3 - Processes 2 Topics to Cover… Process Process Creation Process Termination 2-state Model 5-state Model Suspended Process Control Tables
Background image of page 2
BYU CS 345 Chapter 3 - Processes 3 What is a Process (or Task)? Sequence of instructions that executes The entity that can be assigned to and executed on a processor A unit of activity characterized by a single sequential thread of execution Can be traced Associated data needed by the program Context All information the operating system needs to manage the process A current state and an associated set of system resources Process
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
BYU CS 345 Chapter 3 - Processes 4 What is Required of an OS? Assist the execution of a process interleave the execution of several processes maximize processor utilization provide reasonable response time Allocate resources to processes fairness avoid starvation / deadlock Support interprocess activities communication user creation of processes Process
Background image of page 4
BYU CS 345 Chapter 3 - Processes 5 Process Implementation Process
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
BYU CS 345 Chapter 3 - Processes 6 Process Trace Process
Background image of page 6
BYU CS 345 Chapter 3 - Processes 7 What Initiates Process Creation? Submission of a batch job User logs on Created to provide a service such as printing Process creates another process Modularity Parallelism Parent – child relationship Deciding how to allocate the resources is a policy that is determined by the OS Process Creation
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
BYU CS 345 Chapter 3 - Processes 8 Process Creation Decisions Resource Allocation Treat as a new process Divide parent’s resources among children Execution child runs concurrently with parent parent waits until some or all children terminate Address Space copy of parent new program loaded into address space Process Creation
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 25

CS345 03 - Processes - Processes Chapter 3 Topics to Cover...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online