0% found this document useful (0 votes)
2 views6 pages

Understanding Process Control and IDs

The document discusses process control, focusing on the creation, execution, and termination of processes. It explains the concept of process identifiers, highlighting that each process has a unique ID, with specific IDs assigned to key processes like the scheduler and init process. Additionally, it provides examples of system calls to retrieve process and user IDs.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views6 pages

Understanding Process Control and IDs

The document discusses process control, focusing on the creation, execution, and termination of processes. It explains the concept of process identifiers, highlighting that each process has a unique ID, with specific IDs assigned to key processes like the scheduler and init process. Additionally, it provides examples of system calls to retrieve process and user IDs.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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 !!!

You might also like