Process Management Component of Linux Kernel | case study | 2016

Filter Course


Process Management Component of Linux Kernel | case study | 2016

Published by: Sujan

Published date: 19 Mar 2023

Process Management Component of Linux Kernel | case study | 2016

Process Management Component of Linux Kernel - Case Study - 2016

The Process Management Component of Linux Kernel are described below:-

  • Signal Handling
  • Process / Thread Creation and termination
  • CPU Scheduling
  1. Signal handling: Signals are used in Linux to notify a process of an event or interrupt. The kernel provides a set of default signal handlers that handle common signals like SIGINT (interrupt from the keyboard) or SIGTERM (termination request from another process). However, processes can also define their own signal handlers to respond to signals in a custom way. The kernel is responsible for delivering signals to the correct process and executing the appropriate signal handler.

  2. Process and thread creation and termination: The kernel is responsible for creating new processes and threads when a user requests it. This involves allocating memory for the new process or thread, setting up the necessary data structures, and initializing its state. The kernel also provides mechanisms for terminating processes and threads when they are no longer needed. This involves deallocating memory, closing open files and network connections, and removing the process or thread from the scheduler's list.

  3. CPU scheduling: The kernel decides which processes should be allowed to run on the CPU at any given time. This involves maintaining a list of processes that are waiting to run and selecting the next process to run based on a set of scheduling algorithms. The scheduler tries to ensure that processes get fair access to the CPU and that the system is responsive to user input. The Linux kernel provides several scheduling algorithms, including the Completely Fair Scheduler (CFS) and the Real-Time Scheduler (RT).