Process identifier

Process identifier

In computing, the process identifier (normally referred to as the process ID or just PID) is a number used by some operating system kernels (such as that of UNIX, Mac OS X or Windows NT) to uniquely identify a process.

In Unix-like operating systems, the PID of a newly created child process is returned by the fork() system call to the parent.

The PID can be passed to process control functions like waitpid() or kill() to perform actions on the given process, and if the operating system has procfs support the files in /proc/pid/ can be queried for information about the process.

In Unix-like operating systems, there are two tasks with specially distinguished process IDs: "swapper" or "sched" has process ID zero and is responsible for paging, and is actually part of the kernel rather than a normal user-mode process. Process ID 1 is usually the init process primarily responsible for starting and shutting down the system. Originally, process ID 1 was not specifically reserved for init by any technical measures: it simply had this ID as a natural consequence of being the first process invoked by the kernel. More recent Unix systems typically have additional kernel components visible as 'processes', in which case PID 1 is actively reserved for the init process to maintain consistency with older systems.

Under Unix, process IDs are usually allocated on a sequential basis, beginning at 0 and rising to a maximum value which varies from system to system. Once this limit is reached, allocation restarts at zero and again increases. However, for this and subsequent passes any PIDs still assigned to processes are skipped. Some consider this to be a potential security vulnerability in that it allows information about the system to be extracted, or messages to be covertly passed between processes. As such implementations that are particularly concerned about security may choose a different method of PID assignment. cite web | title =comp.unix.aix Frequently Asked Questions | url = http://www.faqs.org/faqs/aix-faq/part2/section-20.html | accessdate = 2008-07-21]

References

See also

*UID
*GID


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Process identifier — Identifiant de processus L identifiant de processus ou PID (Process IDentifier) est un code unique attribué sur les systèmes Unix ou Windows à tout processus lors de son démarrage. Il permet ainsi d identifier le processus dans la plupart des… …   Wikipédia en Français

  • Process identifier — Ein Process identifier (process ID, PID) ist ein einzigartiger Schlüssel, welcher der eindeutigen Identifikation von Prozessen dient. Der PID ändert sich während der Laufzeit des Prozesses nicht. Nach dem Beenden des Prozesses wird der PID wieder …   Deutsch Wikipedia

  • Process group — In POSIX conformant operating systems, a process group denotes a collection of one or more processes. Process groups are used to control the distribution of signals. A signal directed to a process group is delivered individually to all of the… …   Wikipedia

  • Process control block — A Process Control Block (PCB, also called Task Control Block or Task Struct) is a data structure in the operating system kernel containing the information needed to manage a particular process. The PCB is the manifestation of a process in an… …   Wikipedia

  • Process ID — Ein Process identifier (process ID, PID) ist ein einzigartiger Schlüssel, welcher der eindeutigen Identifikation von Prozessen dient. Der PID ändert sich während der Laufzeit des Prozesses nicht. Nach dem Beenden des Prozesses wird der PID wieder …   Deutsch Wikipedia

  • identifier — i‧den‧ti‧fi‧er [aɪˈdentfaɪə ǁ ər] noun [countable] COMPUTING a group of letters, numbers, or symbols that a computer has been programmed to recognize and uses to process information: • For companies, Social Security numbers serve as a universal… …   Financial and business terms

  • Identifier — Identifiers on the back of a statue in the Louvre An identifier is a name that identifies (that is, labels the identity of) either a unique object or a unique class of objects, where the object or class may be an idea, physical [countable] object …   Wikipedia

  • Process calculus — In computer science, the process calculi (or process algebras) are a diverse family of related approaches to formally modelling concurrent systems. Process calculi provide a tool for the high level description of interactions, communications, and …   Wikipedia

  • Group identifier (Unix) — In Unix like systems, multiple users can be categorized into groups . POSIX and conventional Unix file system permissions are organized into three classes, user , group , and others . The use of groups allows additional abilities to be delegated… …   Wikipedia

  • Parent process — A parent process is a computer process that has created one or more child processes.In UNIX, every process except process 0 (the swapper) is created when another process executes the fork system call. The process that invoked fork is the parent… …   Wikipedia

Share the article and excerpts

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