Lec08-Process+Creation

Lec08-Process+Creation - National University of Computer &...

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

View Full Document Right Arrow Icon
Operating System Operating System Spring 09 Spring 09 National University National University of Computer & Emerging Sciences of Computer & Emerging Sciences Lec07-Processes Lec07-Processes Prepared by Prepared by Uzma Maroof Uzma Maroof uzma.maroof@nu.edu.pk
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Reference Reference 10.3.2 Process Management System Calls in UNIX Modern Operating System 2 nd Edition, Andrew S. Tanenbaum
Background image of page 2
3 Process Creation Process Creation Includes Build kernel data structures Allocate memory Reasons to create a process Submit a new batch job/Start program User logs on to the system OS creates on behalf of a user (printing) Spawned by existing 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
4 Process Termination Process Termination Batch job issues Halt instruction User logs off Process executes a service request to terminate Parent terminates so child processes terminate Operating system intervention such as when deadlock occurs Error and fault conditions E.g. memory unavailable, protection error, arithmetic error, I/O failure, invalid instruction
Background image of page 4
5 Unix Process Creation Unix Process Creation When the system starts up it is running in kernel mode There is only one process, the initial process. At the end of system initialization, the initial process starts up another kernel process. The init kernel process has a process identifier of 1.
Background image of page 5

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

View Full DocumentRight Arrow Icon
6 Process Creation Process Creation These new processes may themselves go on to create new processes.
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/23/2011 for the course ART 431 taught by Professor Dona during the Spring '10 term at Alfaisal University.

Page1 / 20

Lec08-Process+Creation - National University of Computer &...

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

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