Your SlideShare is downloading. ×
Process   part 1
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Process part 1

55
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
55
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. In this lesson, we will understand, we deal with the concept of process.Process is the basic context within which the user requested activity isserviced within operating system. In technical terms, a process comprisesof process stack and data section. - Process stack holds temporary data such as subroutine parameters, return addresses, and temporary variables. - Data section contains global variables - Process is a program in execution, and current activity is represented by value in program counter and contents of processor’s registers.A process in OS is represented by a data structure called PCB, processcontrol block (also called task control block). Operating systems have toensure multi-tasking by the way scheduling the processes. During thecontext switch, the running process is stopped and another process is givena chance to run. OS copies the values from hardware registers to PCB, andupdate the hardware registers with the values from PCB of new process. Pointer Process state Process number Program counter Registers Memory limits List of open files Other info
  • 2. Figure: PCB StructurePCBs define the current state of the OS. PCB contains the data offollowing categories. - Process identification data – process id, parent process id, user id, user group id, … - Process state data – process state, content of CPU general purpose registers, program counter, CPU scheduling information, Memory management informationProgram counter indicates address of the next instruction to be executedin process. CPU Scheduling information consists of process priority,pointers to scheduling queues, and other scheduling parameters. Memorymanage information consists of value of bases and limit registers, pagetables, segment tables depending on the memory system used by OS.