UNIX process
process is a running instance of a program,identified with "pid"
process consist of
process is a running instance of a program,identified with "pid"
process consist of
- allocated system resources
- a section of memory
- security attributes (like its owner and set of permissions)
- the process state(running,blocked,waiting)
- process can also be called as execution context of a running program in the current time slice, which is given by the OS as part of scheduling the processes running in the CPU
- process can also be defined in terms of data structure which stores the information about the process
- new process is created by "fork" command in Unix
- program is an executable file in binary format that can be read by the CPU, and process is a program in action (execution)
- process scheduling, giving cpu time(divided into time slice) to each process, context switch(when time slice ends or the process waiting for a resource) from one process to other when execution context changes
- context is the contents of the CPU register and the program counter
- when context switch occur
- when scheduling multiple tasks(from one process or thread to another), handling the hardware interrupt,user and kernel mode switching