- Mastering Linux Kernel Development
- Raghu Bharadwaj
- 204字
- 2021-07-08 09:47:13
Process descriptors
Right from the time a process is born until it exits, it’s the kernel's process management subsystem that carries out various operations, ranging from process creation, allocating CPU time, and event notifications to destruction of the process upon termination.
Apart from the address space, a process in memory is also assigned a data structure called the process descriptor, which the kernel uses to identify, manage, and schedule the process. The following figure depicts process address spaces with their respective process descriptors in the kernel:

In Linux, a process descriptor is an instance of type struct task_struct defined in <linux/sched.h>, it is one of the central data structures, and contains all the attributes, identification details, and resource allocation entries that a process holds. Looking at struct task_struct is like a peek into the window of what the kernel sees or works with to manage and schedule a process.
Since the task structure contains a wide set of data elements, which are related to the functionality of various kernel subsystems, it would be out of context to discuss the purpose and scope of all the elements in this chapter. We shall consider a few important elements that are related to process management.
- ClickHouse性能之巔:從架構設計解讀性能之謎
- PowerCLI Cookbook
- 深入實踐Spring Boot
- 程序員面試算法寶典
- Java游戲服務器架構實戰
- 零基礎學MQL:基于EA的自動化交易編程
- PostgreSQL Replication(Second Edition)
- PhpStorm Cookbook
- 青少年Python編程入門
- 飛槳PaddlePaddle深度學習實戰
- 深入淺出Serverless:技術原理與應用實踐
- Java Web應用開發項目教程
- Windows Phone 8 Game Development
- 從Excel到Python數據分析:Pandas、xlwings、openpyxl、Matplotlib的交互與應用
- Learning Concurrency in Python