answersLogoWhite

0

CREATION OF PROCESS

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.

PROCESS TERMINATION

There are many reasons for process termination:

  • Batch job issues halt instruction
  • User logs off
  • Process executes a service request to terminate
  • Error and fault conditions
  • Normal completion
  • Time limit exceeded
  • Memory unavailable
  • Bounds violation; for example: attempted access of (non-existent) 11th element of a 10-element array
  • Protection error; for example: attempted write to read-only file
  • Arithmetic error; for example: attempted division by zero
  • Time overrun; for example: process waited longer than a specified maximum for an event
  • I/O failure
  • Invalid instruction; for example: when a process tries to execute data (text)
  • Privileged instruction
  • Data misuse
  • Operating system intervention; for example: to resolve a deadlock
  • Parent terminates so child processes terminate (cascading termination)
  • Parent request
User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How many states can a process be in?

5 Created,Waiting,Running,Blocked ,terminated


What is cascading process termination?

Some systems, including VMS, do not allow a child to exist if its parent has terminated. In such systems, if a process terminates (either normally or abnormally), then all its children must also be terminated. This phenomenon, referred to as cascading termination.


How the process is being crwater and terminated?

The US Water Supply Company using the internet name crwater is still in business so it has not terminated. Any enquiries abount your account should be dirrected to the Water Supply Company.


What is Tray exe?

tray.exe is a process belonging to Paragon CD-ROM Emulator. This program is a non-essential process, but should not be terminated unless suspected to be causing problems.


What is cascading terminator?

Some systems, including VMS, do not allow a child to exist if its parent has terminated. In such systems, if a process terminates (either normally or abnormally), then all its children must also be terminated. This phenomenon, referred to as cascading termination.


Can an employee be terminated for speaking on a protected issue such as race?

if it is argued that it created a hostile work environment yes.


How are processes created and deleted in UNIX Operating system?

In UNIX, processes are created using the fork() system call, which creates a new process by duplicating the calling process. The new process, known as the child process, can then execute a different program using the exec() family of functions. Processes are deleted when they complete their execution, or they can be terminated by another process using the kill() system call, which sends a signal to terminate the specified process. Once a process terminates, its resources are reclaimed by the operating system, though it may remain in a "zombie" state until its parent process retrieves its exit status.


What is orphan state in unix?

In Unix, an orphan state refers to a situation where a process's parent process has terminated or exited, leaving the child process without a parent. This orphaned process is typically adopted by the init process (usually PID 1), which takes over as its new parent. Orphan processes continue to run independently and can be reaped by the init process to free up system resources. This mechanism helps ensure that orphaned processes do not become zombies and can continue execution until they complete or are terminated.


How can you tell that 0.750 has terminated?

How can you tell that 0.750 has terminated


What happens when a CAC is terminated?

What happens when a CAC is terminated


Why a process might be terminated?

A process might be terminated for several reasons, including the completion of its task, an error or exception that causes it to crash, or a request from the user or system administrator to end it. Additionally, if a process consumes excessive resources or conflicts with other processes, the operating system may forcibly terminate it to maintain system stability. In some cases, a parent process may terminate its child processes as part of its own shutdown procedure.


What are the Process states?

A process which is Executed by the Process have various States, the State of the Process is also called as the Status of the process, The Status includes whether the Process has Executed or Whether the process is Waiting for Some input and output from the user and whether the Process is Waiting for the CPU to Run the Program after the Completion of the Process.The various States of the Process are as Followings:-1) New State : When a user request for a Service from the System , then the System will first initialize the process or the System will call it an initial Process . So Every new Operation which is Requested to the System is known as the New Born Process.2) Running State : When the Process is Running under the CPU, or When the Program is Executed by the CPU , then this is called as the Running process and when a process is Running then this will also provides us Some Outputs on the Screen.3) Waiting : When a Process is Waiting for Some Input and Output Operations then this is called as the Waiting State. And in this process is not under the Execution instead the Process is Stored out of Memory and when the user will provide the input then this will Again be on ready State.4) Ready State : When the Process is Ready to Execute but he is waiting for the CPU to Execute then this is called as the Ready State. After the Completion of the Input and outputs the Process will be on Ready State means the Process will Wait for the Processor to Execute.5) Terminated State : After the Completion of the Process , the Process will be Automatically terminated by the CPU . So this is also called as the Terminated State of the Process. After Executing the Whole Process the Processor will Also deallocate the Memory which is allocated to the Process. So this is called as the Terminated Process.