{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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 of Computer & Emerging Sciences of Computer & Emerging Sciences Lec21-Threads Introduction Lec21-Threads Introduction Prepared by Prepared by Uzma Maroof Uzma Maroof [email protected]
Background image of page 1

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

View Full Document Right 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 Document Right 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 State
Background image of page 5

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

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}