StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...

Process Control Block - Essay Example

Cite this document
Summary
Process control block (PCB) is an integral data structure because each PCB contains the processing information required by the operating system. Simply put, it is where the operating system stores all pertinent information in a specific process. Since the fundamental task of any OS is the management of processes, PCBs are accessed and amended by every module in the operating system - these are the elements that are in control of allocation of resources, synchronization, memory management, scheduling, system monitoring and interruption processing (Stallings, 2004).
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER98.2% of users find it useful
Process Control Block
Read Text Preview

Extract of sample "Process Control Block"

Download file to see previous pages

terminals, devices), process owner (user ID), Parent (pointers to parent or child processes), save registry (process registers, stack information and pointers), process IDs (I/O, IPCs), process state (ready, running or standby mode), memory pointers (MMU registers) (Silberschatz, Galvin and Gagne, 2002). PCBs classified under process control information are : scheduling and state information (i.e., the current state of the process, time slot, time to run, the priority of process) , data structuring (i.e. pointer to parent process or a pointer to child process), interprocess communication (i.e. message passing, synchronization, shared memory), process privileges , memory management and resource ownership (i.e. retrieval of file ownership).

In Unix, for example, the process structure has two separate places in memory (kernel and user space) where it stores PCBs. Under this arrangement, process is started at the information (process ID, scheduling priority, etc.) level. During linking stage, the PCBs are defined for queuing. Once the process is ready for initialization, queuing is linked with other PCBs. The PCBs assign pointers from parent to child to subsequent relative processes. The execution of the process comes from the user level.

Once system level is reached, the system switches to system mode and utilizes kernel stacks to continue with the process. (Silberschatz, Galvin and Gagne, 2002).Linux PCBs act almost in a similar fashion as Unix. Linux uses the structure task_struct to describe the characteristics of a process. This structure is managed through a series of indicators called a task vector. The number of processes that could be made at one time is only limited by the capacity of the task vector, which by default has 512 entries.

When new processes are created, new structures are assigned from the system memory and are then added to the task vector. The vector pointer points to the most recent processes being run, making it easier to locate (Nutt, 2004).Data structure that defines the "process identification information": struct task_struct{ int pid, pgrp, session, leader; unsigned short uid, euid, suid, fsuid; unsigned short gid, egid, sgid, fsgid; }For each process initiated, a unique own process ID number and uid is assigned.

Afterwards, it is given a groupID, pgrp, and a session identification. For each session, a leader process code is also designated. Every process has its distinct process ID number, uid, and is assigned to

...Download file to see next pages Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Process Control Block Essay Example | Topics and Well Written Essays - 1000 words”, n.d.)
Retrieved from https://studentshare.org/miscellaneous/1528198-process-control-block
(Process Control Block Essay Example | Topics and Well Written Essays - 1000 Words)
https://studentshare.org/miscellaneous/1528198-process-control-block.
“Process Control Block Essay Example | Topics and Well Written Essays - 1000 Words”, n.d. https://studentshare.org/miscellaneous/1528198-process-control-block.
  • Cited: 1 times

CHECK THESE SAMPLES OF Process Control Block

Operating Systems: Android OS

Interface The user interface provides the display and the user control or command of the Android operating system.... The display is supported by the fluid enabled interface designed to aid the interaction process between the user and the Operating System.... This paper ''Operating Systems: Android OS'' tells that different parties in the mobile marketplace have different and unique needs such as mobile operators wanting to provide value added content to their customers in a lucrative and manageable way....
9 Pages (2250 words) Literature review

Traffic Light Project

This report covers discussions on the design of three types of traffic light controllers for a simple North/ South and East/ West road crossing.... The first two are basic traffic light controllers with slightly different light red, amber and green light sequences.... hellip; For these two types of controller, Johnson decade counters (IC 4017) are used in conjunction with astable multivibrators using timers (IC 555)....
59 Pages (14750 words) Coursework

Operating Systems, Process Concept, and State

Process Control BlockThe operating system maintains a Process Control Block (PCB) for every process.... The paper "Operating Systems, process Concept, and State" summarizes the programs loaded into memory are termed as processes, the latter passes through various queues during the course of its lifetime.... The process is the basis of all computations and is defined as a program in execution.... Programs are passive entities while the process is active (Dhamdhare, 2006, p....
5 Pages (1250 words) Research Paper

Programming a Lego Mindstorm Robot

This programming language gives everyone the ability to possess full control of the Lego Mindstorm Kit (Valk).... The equipment also has several advantages which include very short start – up time, the setup process does not involve electrical wiring, among other advantages....
5 Pages (1250 words) Essay

Regional Trade Agreements versus Global Trade Liberalization

The journal article inspects the high number of probable benefits that regional trade agreements provide to their members, and these include the following; credibility, signaling, bargaining power, insurance, and coordination.... Further, it examines the most important situations… r every probable platform to work, giving examples stylized for particular types of policy in which the benefit might be applicable, and appraises cases in which explanations might be applicable, and explores their overall plausibility....
4 Pages (1000 words) Annotated Bibliography

Virtual Private Network as an Appropriate Control

It uses the block cipher method, which breaks the text into 64-bit blocks before encrypting them.... It is asymmetric (that is, a secret or private key) block cipher that uses a variable-length key, from 32 bits to 448 bits, making it useful for both domestic and exportable use”.... The paper "Virtual Private Network as an Appropriate control" for establishing a secure channel recommends defining the scope i.... Access control policy should be drafted that will address access to whom and why....
8 Pages (2000 words) Case Study

Chemical Engineering Advance Process Control

The goal of this paper is to discuss the aspects of modeling and control of engineering systems.... nbsp;… control is the term used when referring to the methods or means utilized in governing performance of system, apparatus or machine.... control system is used in controlling processes in order to meet the desired end; this high quality, improved safety, high production rate or repeatability in production.... In case of modeling errors, the feedforward controls reduce the effects associated with measured the disturbances on the output when compared to the feedback control working alone....
8 Pages (2000 words) Coursework

A Pseudo-Code for the Synchronization of Wait-and-Signal Tasks

In one process in finished, its free space is allocate to another process.... Protection: Care must be taken so that one process does not access the address of other processes in the system.... ogical Organization: This entails segmentation of address space on the system, which allows for cross referencing on one segment unto another by the system at the time the process is running.... Q19: “Fragmentation” and ‘Compaction': Fragmentation is a process that occurs on hard disk or other media of data storage where data is not written close to the physical space on the drive....
4 Pages (1000 words) Coursework
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us