Process states

Process states

In a multitasking computer system, processes may occupy a variety of states. These distinct states may not actually be recognized as such by the operating system kernel, however they are a useful abstraction for the understanding of processes.

Primary process states

The following typical process states are possible on computer systems of all kinds. In most of these states, processes are "stored" on main memory.

Created

(Also called new.) When a process is first created, it occupies the "created" or "new" state. In this state, the process awaits admission to the "ready" state. This admission will be approved or delayed by a long-term, or admission, scheduler. Typically in most desktop computer systems, this admission will be approved automatically, however for real time operating systems this admission may be delayed. In a real time system, admitting too many processes to the "ready" state may lead to oversaturation and overcontention for the systems resources, leading to an inability to meet process deadlines.process means the program that is currently running,or that part of program currently used by processor.

Ready

(Also called waiting' or runnable.) A "ready" or "waiting" process has been loaded into main memory and is awaiting execution on a CPU (to be context switched onto the CPU by the dispatcher, or short-term scheduler). There may be many "ready" processes at any one point of the systems execution - for example, in a one processor system, only one process can be executing at any one time, and all other "concurrently executing" processes will be waiting for execution.

A "ready queue" is used in computer scheduling. Modern computers are capable of running many different programs or processes at the same time. However, the CPU is only capable of handling one process at a time. Processes that are ready for the CPU are kept in a queue for "ready" processes. Other processes that are waiting for an event to occur, such as loading information from a hard drive or waiting on an internet connection, are not in the ready queue.

Running

(Also called active or executing.) A "running", "executing" or "active" process is a process which is currently executing on a CPU. From this state the process may exceed its allocated time slice and be context switched out and back to "ready" by the operating system, it may indicate that it has finished and be terminated or it may block on some needed resource (such as an input / output resource) and be moved to a "blocked" state.

Blocked

(Also called sleeping.) Should a process "block" on a resource (such as a file, a semaphore or a device), it will be removed from the CPU (as a blocked process cannot continue execution) and will be in the blocked state. The process will remain "blocked" until its resource becomes available, which can unfortunately lead to deadlock. From the blocked state, the operating system may notify the process of the availability of the resource it is blocking on (the operating system itself may be alerted to the resource availability by an interrupt). Once the operating system is aware that a process is no longer blocking, the process is again "ready" and can from there be dispatched to its "running" state, and from there the process may make use of its newly available resource.

Terminated

A process may be terminated, either from the "running" state by completing its execution or by explicitly being killed. In either of these cases, the process moves to the "terminated" state. If a process is not removed from memory after entering this state, this state may also be called zombie.

Additional process states

Two additional states are available for processes in systems that support virtual memory. In both of these states, processes are "stored" on secondary memory (typically a hard disk).

wapped out and waiting

(Also called suspended and waiting.) In systems that support virtual memory, a process may be swapped out, that is removed from main memory and placed in virtual memory by the mid-term scheduler. From here the process may be swapped back into the waiting state.

wapped out and blocked

(Also called suspended and blocked.) Processes that are blocked may also be swapped out. In this event the process is both swapped out and blocked, and may be swapped back in again under the same circumstances as a swapped out and waiting process (although in this case, the process will move to the blocked state, and may still be waiting for a resource to become available).

ee also

*Blocking_(computing)
*Child process
*Concurrency
*Context switch
*Multitasking
*Orphan process
*Process
*Scheduling
*Task
*Thread
*Uninterruptible sleep
*Virtual memory
*Zombie process

References


*:Particularly chapter 3, section 3.2, "process states", including figure 3.9 "process state transition with suspend states"

Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Process (computing) — In computing, a process is an instance of a computer program that is being executed. It contains the program code and its current activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that… …   Wikipedia

  • Process Oriented Psychology — (POP) refers to a body of theory and practice that encompasses a broad range of psychotherapeutic, personal growth, and group process applications. It is more commonly called Process Work in the United States, the longer name being used in Europe …   Wikipedia

  • Process theory — is a commonly used form of scientific research study in which events or occurrences are said to be the result of certain input states leading to a certain outcome (output) state, following a set process.Process theory holds that if an outcome is… …   Wikipedia

  • Process Oriented Coma Work — Process Oriented Coma Work, (or simply coma work) refers to a body of theory and practice for psychotherapeutic work with patients in comatose, vegetative, and other highly withdrawn states of consciousness. It was developed by psychotherapist… …   Wikipedia

  • Process art — is an artistic movement as well as a creative sentiment and world view where the end product of art and craft , the , is not the principal focus. The process in process art refers to the process of the formation of art: the gathering, sorting,… …   Wikipedia

  • Process (engineering) — Process engineering refers to engineering which is collaborative and concerned with completing a project as a whole.emiconductor devicesIn the electronics industry, especially for those building ICs, some technologists can be referred to as… …   Wikipedia

  • Process Analytical Technology — (PAT) has been defined by the United States Food and Drug Administration (FDA) as a mechanism to design, analyze, and control pharmaceutical manufacturing processes through the measurement of critical process parameters and quality attributes.The …   Wikipedia

  • Process management (computing) — Operating systems …   Wikipedia

  • process — A series of actions, motions, or occurrences; progressive act or transaction; continuous operation; method, mode or operation, whereby a result or effect is produced; normal or actual course of procedure; regular proceeding, as, the process of… …   Black's law dictionary

  • States and territories of India — India is a federal union of states[1] comprising twenty eight states and seven union territories. The states and territories are further subdivided into districts and so on.[1] …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”