Describe the contents of a process control block, Computer Engineering

Assignment Help:

Describe the contents of a Process Control Block (PCB).

Process Control Block (PCB): All processes are represented in the operating system by a task control block or a process control block.

This contains many pieces of information connected with an exact process such as:

(1) Process state: The state may be new, ready and halted and running, and waiting and so on.

 (2) Program counter: The counter shows the address of the next instruction to be executed for such process.

(3) CPU registers: The registers vary in number and category, depending upon the computer architecture. They contain accumulators, stack pointers, index registers and general- purpose registers, plus some condition-code information.  With the program counter, this state information should be saved while and interrupt occurs, to permit the process to be continued properly afterward.

2296_Process Control Block.png

Figure: Process Control Block(PCB)

(4) CPU-scheduling information: This information contains a process priority, pointers to scheduling queues and other scheduling parameters.

(5) Memory-management information: This information may contain such information as the value of the base and limit registers and the page tables, or else the segment tables, depending upon the memory system utilized by the OS.

(6) Accounting information: This information contains the amount of CPU and real time utilized, and time limits, job or process numbers, account numbers and so on.

(7) I/O status information: The information contains the list of I/O devices allocated to such process, a list of open files etc.

The PCB only functions as the repository for any information which may vary from process to process.


Related Discussions:- Describe the contents of a process control block

Explain recursive descent parsing, Explain Recursive Descent Parsing It...

Explain Recursive Descent Parsing It is a top down parsing with no backtracking. This parsing method uses a set of recursive processes to perform parsing. Most important advant

How can server communicate with more than one client, Server can interact w...

Server can interact with more than one client with using threading concepts there are java threads which are allocated to each client when he logs in to server, the thread handles

Illustration what is the cause of brownian motion, Q. Illustration what is ...

Q. Illustration what is the cause of Brownian motion? Answer:- Molecules in a gas move freely, randomly, constantly in all directions and at high speeds. They are capable

How do stubs work in a weblogic server cluster, Clients that join to a WebL...

Clients that join to a WebLogic Server cluster and look up a clustered object get a replica-aware stub for the object. This stub haves the list of available server instances that h

What is a resource-allocation graph, What is a resource-allocation graph? ...

What is a resource-allocation graph? Deadlocks can be described more precisely in terms of a directed graph known as a system resource allocation graph. This graph having of a

Compares a pair of characters entered by keyboard, Program: This program c...

Program: This program compares a pair of characters entered by keyboard. ; Registers used: AX, BX, CX, DX DATA SEGMENT                          XX DB?

Which scheduler select process from secondary storage device, Which schedu...

Which scheduler selects processes from secondary storage device? Ans. Medium term scheduler selects processes from secondary storage device.

What must the requirement of designer to get memory capacity, In applicatio...

In applications where the required memory capacity cannot be satisfied by a single available memory IC chip, what should the designer do to meet this requirement? Ans: If th

Illustrate program on hypothetical machine, Q. Illustrate program on hypoth...

Q. Illustrate program on hypothetical machine? The program given in figure above is a hypothetical program which performs addition of numbers stored from locations 2001 onwards

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd