OS-Process Concepts

The notion of process, which is central to the understanding of today’s computer systems that perform and keep track of many simultaneous ac...

The notion of process, which is central to the understanding of today’s computer systems that perform and keep track of many simultaneous activities.

DEFINITIONS OF “PROCESS”:

The term “Process” was first used by the designers of the Multics sytem in the 1960s.
Some definitions are as follows.
  1.  A program in execution.
  2.  An asynchronous activity.
  3.  The “animated spirit” of a procedure.
  4.  The “locus of control” of a procedure in execution.
  5.  That which is manifested by the existence of a “process control block” in the operating system.
  6.  That entity to which processors are assigned.
  7.  The “dispatchable” unit.
PROCESS STATES:

A process goes through a series of discrete process states. Various events can cause a process to change states.

A process is said to be running (ie., in the running state) if it currently has the CPU. A process is said to be ready (ie., in the ready state) if it could use a CPU if one were available. A process is said to be blocked (ie., in the blocked state) if it is waiting for some event to happen (such as an I/O completion event) before it can proceed.

For example consider a single CPU system, only one process can run at a time, but several processes may be ready, and several may be blocked. So establish a ready list of ready processes and a blocked list of blocked processes. The ready list is maintained in priority order so that the next process to receive the CPU is the first process on the list.

PROCESS STATE TRANSITIONS:

When a job is admitted to the system, a corresponding process is created and normally inserted at the back of the ready list. The process gradually moves to the head of the ready list as the processes before it complete their turns at using the CPU. When the process reaches the head of the list, and when the CPU becomes to make a state transition from ready state to the running state. The assignment of the CPU to the first process on the ready list is called dispatching, and is performed by a system entity called the dispatcher. We indicate this transition as follows

Dispatch ( processname ) : ready --> running.

To prevent any one process to use the system. Wholly, the operating system sets a hardware interrupting clock ( or interval timer ) to allow this user to run for a specific time interval or quantum. If the process does not leave the CPU before the time interval expires, the interrupting clock generates an interrupt, causing the operating system to regain control. The operating system then makes the previously running process ready, and makes the first process on the ready list running. These state transitions are indicated as

timerunout ( processname ) : running --> ready and dispatch ( processname ) : ready --> running
If a running process initiates an input/output operation before its quantum expires, the running process voluntarily leaves the CPU. This state transition is

 Block ( processname ) : running --> blocked

When an input/output operation (or some other event the process is waiting for) completes. The process makes the transition from the blocked state to the ready state. The transition is

 Wakeup ( processname ) : blocked --> ready



THE PROCESS CONTROL BLOCK(PCB):

The PCB is a data structure containing certain important information about the process including.
  •  The current state of the process.
  •  Unique identification of the process.
  •  A pointers to the process’s parent ( ie., the process that created this process ).
  •  Pointers to the process’s child processes ( ie., processes created by this process ).
  •  The process’s priority.
  •  Pointers to locate the process’s memory.
  •  Pointers to allocated resources.
  •  A register save area.
  •  The processor it is running on ( in multiprocessor system)
The PCB is a central store of information that allows the operating system to locate all key information about a process. The PCB is the entity that defines a process to the operating system. 
Name

ADO,131,ASP,3,C++,61,CORE JAVA,1,CSS,115,HTML,297,index,5,JAVASCRIPT,210,OS,47,PHP,65,SAD,53,SERVLETS,23,SOFTWARE ENGINEERING,245,SQL,71,TCP/IP,1,XHTML,9,XML,18,
ltr
item
Best Online Tutorials | Source codes | Programming Languages: OS-Process Concepts
OS-Process Concepts
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinbyvM6mJObNAUfXQtHKfJ79QdVeLgEs_2c-HKuv6sWp02Kd7nb-pJKpH9ClOKTG0qBEE_PeHqrEPnTx0WDjUVyQ5OtOedu7jhZ-TF9L_amOgofdM_95M_k3mw4B3ZGrTRnu-ge5Y1LuaY/s400/Capture.PNG
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinbyvM6mJObNAUfXQtHKfJ79QdVeLgEs_2c-HKuv6sWp02Kd7nb-pJKpH9ClOKTG0qBEE_PeHqrEPnTx0WDjUVyQ5OtOedu7jhZ-TF9L_amOgofdM_95M_k3mw4B3ZGrTRnu-ge5Y1LuaY/s72-c/Capture.PNG
Best Online Tutorials | Source codes | Programming Languages
https://www.1000sourcecodes.com/2012/09/os-process-concepts.html
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/2012/09/os-process-concepts.html
true
357226456970214079
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content