Process Control
By:
Raksha
4AL20CS107
Topics :
• Introduction
• Process Identifiers
Process Control
• Process control is concerned about creation of
new processes, program execution, and process
termination.
Process Identifiers
• Every process has a unique process ID, anon negative integer.
• There are some processes:
Process ID 0 is usually the scheduler process known as swapper.
Process ID 1 is usually the init process and is invoked by the kernel at the
end of the bootstrap procedure.
Process ID 2 is the pagedeamon responsible for supporting the paging of the
virtual memory system.
Process Identifiers
#include <unistd.h>
pid_t getpid(void); Returns: process ID of calling process
pid_t getppid(void); Returns: parent process ID of calling process
uid_t getuid(void); Returns: real user ID of calling process
uid_t geteuid(void); Returns: effective user ID of calling process
gid_t getgid(void); Returns: real group ID of calling process
gid_t getegid(void); Returns: effective group ID of calling process
Thank You !!!