understand_linux_process
understand_linux_process copied to clipboard
The open-source ebook of Understand Linux Process
Would love it if there was English translation.
在 Linux 4.14-rc3 之后的源代码中,关于 进程状态的描述添加了 `P (parked)` 和 `I (idle)` 的状态 ```bash static const char * const task_state_array[] = { /* states in TASK_REPORT: */ "R (running)", /* 0x00 */...
第一段:一般我们运行程序都是Fork一个进程后马上执行Exec加载程序,而**Fork的是否实际上用的是父进程的堆栈空间**,Linux通过Copy On Write技术极大地减少了Fork的开销。 读起来并不顺,是否该改为 **Fork实际上用的是父进程的堆栈空间** 第二段:Copy On Write的含义是只有真正写的时候才把数据写到子进程的数据,Fork时只会把页表复制到子进程,这样父子进程都指向同一个物理内存页,只有**再**写子进程的时候才会把内存页的内容重新复制一份。 **再**是否改改为**在**
在僵尸进程章节中第二段:一个进程使用fork创建子进程,如果子进程退出,而父进程并没有调用wait或waitpid获取子进程的状态信息,那么子进程的进程描述符仍然保存在系统中。这种进程称之为**僵死**进程。
The size of pdf file I downloaded is different, which affects the reading. Is this a production problem? like this: 
The domain of the website for "read online" link in the README, which is `www.linuxprocess.com`, seems to be expired.
- [线程基础](thread_basic/README.md) - [线程进程区别](thread_basic/difference.md) - [线程间通信](thread_basic/communication.md)
在 PPID 章节,有 “进程号为1的进程并没有PPID。”,我在机器上 ps -ef 查看之后发现 pid 为1的进程,ppid 为 0.虽然没有实际进程对应,但是 PPID 这个数字还是有的。
File: /process_basic/exit_code.md (Line 4) Original: 任何进程退出时,都会留下退出码,操作系统根据退出码可以知道进程是否正常运行。 Revise: 任何进程退出时,都会留下退出码,操作系统根据退出码可以知道进程是否正常**结束/退出/终止**。
I'm gonna learn more about this for advanced usage of process.