- Mastering Linux Kernel Development
- Raghu Bharadwaj
- 169字
- 2021-07-08 09:47:14
pid
This field contains a unique process identifier referred to as PID. PIDs in Linux are of the type pid_t (integer). Though a PID is an integer, the default maximum number PIDs is 32,768 specified through the /proc/sys/kernel/pid_max interface. The value in this file can be set to any value up to 222 (PID_MAX_LIMIT, approximately 4 million).
To manage PIDs, the kernel uses a bitmap. This bitmap allows the kernel to keep track of PIDs in use and assign a unique PID for new processes. Each PID is identified by a bit in the PID bitmap; the value of a PID is determined from the position of its corresponding bit. Bits with value 1 in the bitmap indicate that the corresponding PIDs are in use, and those with value 0 indicate free PIDs. Whenever the kernel needs to assign a unique PID, it looks for the first unset bit and sets it to 1, and conversely to free a PID, it toggles the corresponding bit from 1 to 0.
- Boost.Asio C++ Network Programming(Second Edition)
- Google Flutter Mobile Development Quick Start Guide
- Learning Cython Programming(Second Edition)
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- 征服RIA
- MySQL數據庫管理與開發實踐教程 (清華電腦學堂)
- 微信公眾平臺開發:從零基礎到ThinkPHP5高性能框架實踐
- HTML5+CSS3+JavaScript Web開發案例教程(在線實訓版)
- 概率成形編碼調制技術理論及應用
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Mastering Android Game Development
- Yii Project Blueprints
- Node.js:來一打 C++ 擴展
- 高效使用Greenplum:入門、進階與數據中臺
- WordPress Search Engine Optimization(Second Edition)