Process Management (computing) - Process Creation

Process Creation

Operating systems need some ways to create processes. In a very simple system designed for running only a single application (e.g., the controller in a microwave oven), it may be possible to have all the processes that will ever be needed be present when the system comes up. In general-purpose systems, however, some way is needed to create and terminate processes as needed during operation.
There are four principal events that cause a process to be created:

  • System initialization.
  • Execution of process creation system call by running a process.
  • A user request to create a new process.
  • Initiation of a batch job.

When an operating system is booted, typically several processes are created. Some of these are foreground processes, that interacts with a (human) user and perform work for them. Other are background processes, which are not associated with particular users, but instead have some specific function. For example, one background process may be designed to accept incoming e-mails, sleeping most of the day but suddenly springing to life when an incoming e-mail arrives. Another background process may be designed to accept an incoming request for web pages hosted on the machine, waking up when a request arrives to service that request.

Process creation in UNIX and Linux are done through fork or clone system calls. There are several steps involved in process creation. The first step is the validation of whether the parent process has sufficient authorization to create a process. Upon successful validation, the parent process is copied almost entirely, with changes only to the unique process id, parent process, and user-space. Each new process gets its own user space.

Read more about this topic:  Process Management (computing)

Famous quotes containing the words process and/or creation:

    The process of writing has something infinite about it. Even though it is interrupted each night, it is one single notation.
    Elias Canetti (b. 1905)

    The private detective of fiction is a fantastic creation who acts and speaks like a real man. He can be completely realistic in every sense but one, that one sense being that in life as we know it such a man would not be a private detective.
    Raymond Chandler (1888–1959)