code/operating_system/src/processCreation/README.md
fork() command is used to create a new process. getpid() and getppid() commands are used to display the PID(Process ID) of the child and parent processes. wait() command is used to control the flow of execution.
Use the ps command with some additional options that provide detailed information about the processes running on our system. -a lists processes of all users on the system -u gives us details about the processes -x lists processes that run unobtrusively in the background (these are known as daemons and usually end with a d, like systemd).
We can use pgrep to lookup the processes that match a specific pattern of text. For example, pgrep -l chrome will search processes metadata for the pattern ‘chrome’, then display the PIDs of those processes along with the program’s name.
Click here for more and detailed information about Processes: