In computer to perform any task we requires a process which leads task to an end. Process is nothing but running instance of a program. Each Process is started by some other process called Parent Process and newly created process will become Child Process. Conventionally Linux operating system treats all process in the same way, resource hold by the parent process are duplicated in the child process.
Whenever we run any application on linux system it creates an entry in process table with a process ID(PID). Based on PID only system tracks the process status. Once process perform its job it immediately gets removed from process table and allow other process to acquire the resource.
Process table is nothing but data structure which describes of all running process and their status (Sleeping, Running, Orphan etc.). will discuss all the process states later in this blog.
When we execute our simple "Hello world.c" a.out, it creates one process called main process for that application which is currently in running state as long as it not coming back to terminal.
If we see a.out is not the first process created in Linux system, There is a hierarchic of processes from Process 1 or init process to current running process . init process in Linux operating system who take cares of all running process or hung process or orphan process and they starts with starting of operating system. we will see one by one how process gets created, maintained, terminated and all other aspects of it.
How to Create a Process in Linux system
Whenever we run any application on linux system it creates an entry in process table with a process ID(PID). Based on PID only system tracks the process status. Once process perform its job it immediately gets removed from process table and allow other process to acquire the resource.
Process table is nothing but data structure which describes of all running process and their status (Sleeping, Running, Orphan etc.). will discuss all the process states later in this blog.
When we execute our simple "Hello world.c" a.out, it creates one process called main process for that application which is currently in running state as long as it not coming back to terminal.
If we see a.out is not the first process created in Linux system, There is a hierarchic of processes from Process 1 or init process to current running process . init process in Linux operating system who take cares of all running process or hung process or orphan process and they starts with starting of operating system. we will see one by one how process gets created, maintained, terminated and all other aspects of it.
How to Create a Process in Linux system
No comments:
Post a Comment