OS Presentation
OS Presentation
Linux Systems
By-
Suyog Patil, N202
Somshekhar Tripathi, N211
Introduction
• fork(): Creates a new process (child) which is a copy of the parent process.
• exec(): Replaces the current process image with a new program image.
• Fork and exec are separate operations in Linux, providing flexibility.
Process Identity
Argument vector (argv[]): Contains the list of arguments passed to the program,
such as command-line inputs.
Detailed Components:
- Scheduling Context: Holds register states, priorities, and signals.
- File Table: Tracks files open by the process using file descriptors.
- Signal-handler Table: Defines actions to be taken for specific signals.
- Virtual Memory Context: Manages memory access, allocation, and separation
between processes.
Scheduling Context
- File Table: Each process maintains a file table, keeping track of all
open files.
- Uses file descriptors as references to open files.
- File-System Context:
- Defines the root directory for the process.
- Tracks the current working directory.
- Contains the namespace, isolating a process's view of the system.
Signal Handling
- Common signals:
- SIGINT: Interrupt from the keyboard (Ctrl + C).
- SIGTERM: Termination signal.
- SIGKILL: Forces process termination, cannot be ignored.
Virtual Memory Context
- Virtual memory:
- Enables efficient memory use through paging and segmentation.
- Prevents one process from accessing another's memory, ensuring
security.
Processes and Threads