What are the process states in Linux?
Process states in Linux:
Running:
Process is either running or ready to run
Interruptible: a
Blocked state of a process and waiting for an event or signal from another
process
Uninterruptible:- a blocked state. Process waits for a hardware
condition and cannot handle any signal
Stopped:
Process is stopped or halted and can be restarted by some other process
Zombie:
process terminated, but information is still there in the process table.
What is a zombie?
Zombie is a process state when
the child dies before the parent process. In this case the structural
information of the process is still in the process table. Since this process is
not alive, it cannot react to signals. Zombie state can finish when the parent
dies. All resources of the zombie state process are cleared by the kernel
Explain each system calls used for process management in
linux.
System
calls used for Process management:
Fork ()
:- Used to create a new process
Exec()
:- Execute a new program
Wait():-
wait until the process finishes execution
Exit():-
Exit from the process
Getpid():-
get the unique process id of the process
Getppid():-
get the parent process unique id
Nice():-
to bias the existing property of process
No comments:
Post a Comment