Lec21-Threads Introduction

Lec21-Threads Introduction - National University of...

Info iconThis preview shows pages 1–6. 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 Lec21-Threads Introduction Lec21-Threads Introduction Prepared by Prepared by Uzma Maroof Uzma Maroof uzma.maroof@nu.edu.pk 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 Modern Operating System 2.2.1 The Thread Model 2.2.2 Thread Usage Andrew S. Tanenbaum 2 nd edition
Background image of page 2
3 Thread: Introduction Thread: Introduction Each process has 1. Own Address Space 2. Single thread of control A process model has two concepts: 1. Resource grouping 2. Execution Sometimes it is useful to separate them
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 Unit of Resource Ownership Unit of Resource Ownership A process has an Address space Open files Child processes Accounting information Signal handlers Etc If these are put together in a form of a process, can be managed more easily
Background image of page 4
5 Unit of Dispatching Unit of Dispatching Path of execution Program counter: which instruction is running Registers: holds current working variables Stack: Contains the execution history, with one entry for each procedure called but not yet returned
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
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 COE 10001 taught by Professor Abad during the Spring '09 term at Alfaisal University.

Page1 / 16

Lec21-Threads Introduction - National University of...

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

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