Process Control Block in OS
- The OS must
know specific information about processes in order to manage, control them
and also to implement the process model, the OS maintains a table (an array of structures), called the process
table, with one entry per process.
- These
entries are called process control blocks (PCB) - also called a task
control block.
- This entry
contains information about the process'state, its program counter, stack
pointer, memory allocation, the status of its open files, its accounting
and scheduling information, and everything else about the process that
must be saved when the process is switched from running to ready or
blocked state so that it can be restarted later as if it had never been
stopped. A PCB is shown in Figure in below.
- Such
information is usually grouped into two categories: Process State
Information and Process
Control Information. Including these:
- Process
state.
The state may be new, ready, running, waiting, halted, and so on.
- Program
counter.
The counter indicates the address of the next instruction to be executed
for this process.
- CPU
registers. The registers vary in number and type,
depending on the computer architecture. They include accumulators, index
registers, stack pointers, and general-purpose registers, plus any
condition-code information.
- CPU-scheduling
information. This information includes a process
priority, pointers to scheduling queues, and any other scheduling
parameters.
- Memory-management
information. This information may include such
information as the value of the base and limit registers, the page
tables, or the segment tables, depending on the memory system used by the
OS.
- Accounting
information. This information includes the amount of CPU
and real time used, time limits, account numbers, job or process numbers,
and so on.
- I/O
status information. This information includes the
list of I/O devices allocated to the process, a list of open files, and
so on.
- Figure shows some of the more important
fields in a typical system. The fields in the first column relate to
process management.
Interesting post. Excellent thought, highly inspiring. Waiting for your future blogs.
ReplyDeletePrimavera Training in Chennai
Primavera Course in Chennai
Primavera Training Institute in Chennai
Primavera Training in Tambaram
Hadoop Admin Training in Chennai
Hadoop Administration Training in Chennai
Drupal Training in Chennai
Drupal Certification Training
IEEE Final Year projects Project Center in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes. Final Year Project Domains for IT
DeleteJavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, project projects for cse. Angular Training
Superb blog! your written style is very impressed to me and I like your great post. Keeping your wonderful job...
ReplyDeleteExcel Training in Chennai
Advanced Excel Training in Chennai
Unix Training in Chennai
Oracle Training in Chennai
Pega Training in Chennai
Spark Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Excel Training in Chennai
Advanced Excel Training in Chennai
You wrote a such a nice blog!! It is very useful for my future reference. All the info you shared with us are truly tremendous.
ReplyDeleteAngularjs Training in Chennai
Angularjs course in Chennai
AWS Training in Chennai
Big Data Analytics Courses in Chennai
Blue Prism Training in Chennai
Cloud Computing Training in Chennai
Data Science Course in Chennai
AngularJS Training in T Nagar
Your article is very informative. Thanks for sharing the valuable information.
ReplyDeleteData Science Course in Chennai
Data Science Courses in Bangalore
Data Science Course in Marathahalli
Best Data Science Training in Marathahalli
Data Science Institute in Marathahalli
AWS Training in Bangalore
Data Science Training in Bangalore
Data Science Institute in Bangalore
Spoken English Classes in Bangalore
DevOps Training in Bangalore