What is an operating system process, Operating System

What is an operating system process? How is it different from a program? Why do we need the concept of a process, rather than simply talk about programs running in memory?

The execution environment in which the class instances and the instances of subsystems run and reside and its unique address space is combined known as Operating system process. The execution environment may be divided into one or more threads of control.

Difference between program & operating system process

 The process may be called the active state of a program. It also gives the status of given task mentioned in that particular program, it provides the information to main memory about the task's state and other details, for example the position it has executed up-to that instance. It keeps track of the status of registers and instances of the resources it hold and required resources, what cost it incurs on the CPU after it is done with its work.

Program is an active entity, it can be seen as the overall information on what has to be done with CPU and other resources which are likely to be needed or liable to complete that given task. In some cases it simply is a combination of Lighten weight processes (known as threads) and thick weight processes as we may require running various modules of different programs in some single program. Thus the process is similar to a platform on CPU for executing various tasks of given program and part of the main set of process. 

Why do we need the concept of a process? 

Processes are inert. We know that process is basically the active state of a program which is the set of instruction destined to execute some specific job. Prior to execution, the instructions must be converted to binary code form in order to be understood by loader OS. It is stored in Portable Executable (PE) Format on Secondary Memory Like hard disk. in windows this is generally the file with .exe extension.

A process consists of a kernel object which keeps statistical information about the process and an address space containing the entire executable or DLL module's code, data and dynamic memory allocations such as thread stacks and heap allocations.

The code contained in the process's address space is run by a thread of the process

One process may contain n number of threads, and all of them execute the code simultaneously in the address space of the process. Each thread has its own set of stack and CPU registers.

If no threads were executing the code in the process's address space the system would automatically destroy the process and its address space.

Posted Date: 6/29/2012 2:03:44 AM | Location : United States







Related Discussions:- What is an operating system process, Assignment Help, Ask Question on What is an operating system process, Get Answer, Expert's Help, What is an operating system process Discussions

Write discussion on What is an operating system process
Your posts are moderated
Related Questions
Enhanced Second chance algorithm In this a modify bit is as well used. Now if the ordered pair of reference and modify is (0,0) neither recently used nor modified - the best

Q. Describe the purpose of the open() and close() operations. Answer: The open() operation notifies the system that the named file is about to become active. The c

Q. In a disk jukebox what would be the result of having more open files than the number of drives in the jukebox? Answer: Two bad results could result. One likelihood is star

Front page We need to continue or customization and documentation of our system. Currently our system boots into runlevel 5 and we need it to boot into runlevel 3. For future r

Locks (also known as mutexes, short for mutual exclusion locks) provide mutual exclusion to shared data inside a critical session. They are implemented by means of two atomic routi

Q. In a ring-protection system the level 0 has the greatest access to objects and level n (greater than zero) has fewer access rights. The access rights of a program at a partic

Q. Consider the subsequent page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6. How many page faults would take place for the following replace

I am not getting what you have tried to describe here. Can you elaborate more about this, i will be thankful to you. Vinay

Explain the Per Thread Scoping Thread-level programming introduces new twists for application-level variable scoping. Threads are commonly used in one of two ways. To ex

What criteria are important in choosing a file organisation?