Content deleted Content added
Maxeto0910 (talk | contribs) →Process states: no sentence |
No edit summary Tags: Reverted references removed Visual edit Mobile edit Mobile web edit |
||
Line 1:
{{short description|Particular execution of a computer program}}
[[File:Concepts- Program vs. Process vs. Thread.jpg|thumb
In
While a computer program is a passive collection of
[[Computer multitasking|Multitasking]] is a method to allow multiple processes to share [[Central processing unit|processors]] (CPUs) and other system resources. Each CPU (core) executes a single process at a time. However, multitasking allows each processor to [[context switch|switch]] between tasks that are being executed without having to wait for each task to finish ([[Preemption (computing)|preemption]]). Depending on the operating system implementation, switches could be performed when tasks initiate and wait for completion of
A common form of multitasking is provided by CPU's
For security and reliability, most modern
==Representation==
Line 20:
* Operating system descriptors of resources that are allocated to the process, such as [[file descriptor]]s ([[Unix]] terminology) or [[Handle (computing)|handles]] ([[Microsoft Windows|Windows]]), and data sources and sinks.
* [[Computer security|Security]] attributes, such as the process owner and the process' set of permissions (allowable operations).
* [[Central processing unit|Processor]] state ([[context (computing)|context]]), such as the content of [[processor register|registers]] and physical memory addressing. The ''state'' is typically stored in computer registers when the process is executing, and in memory otherwise.<ref name="OSC Chap4">{{cite book |last1=Silberschatz |first1=Abraham |author-link=Abraham Silberschatz |title=Operating system concepts with Java |last2=Cagne |first2=Greg |last3=Galvin |first3=Peter Baer |date=2004 |publisher=[[John Wiley & Sons]] |isbn=0-471-48905-0 |edition=Sixth |chapter=Chapter 4. Processes}}</ref>
The operating system holds most of this information about active processes in data structures called [[process control block]]s. Any subset of the resources, typically at least the processor state, may be associated with each of the process' [[Thread (computer science)|threads]] in operating systems that support threads or ''child'' processes.
|