==>> 点击下载文档 |
********
(译者:这里我有意保留原文以便于查询)
1. Process Control 进程控制
1.1 Creating new processes: fork() 创建新进程:fork函数
1.1.1 What does fork() do? fork函数干什么?
1.1.2 What's the difference between fork() and vfork()? fork函数与 vfork函数的区别在哪里?
1.1.3 Why use _exit rather than exit in the child branch of a fork? 为何在一个fork的子进程分支中使用_exit函数而不使用exit函数?
1.2 Environment variables 环境变量
1.2.1 How can I get/set an environment variable from a program? 我怎样在程序中获得/设置环境变量?
1.2.2 How can I read the whole environment? 我怎样读取整个环境变量表?
1.3 How can I sleep for less than a second? 我怎样睡眠小于一秒?
1.4 How can I get a finer-grained version of alarm()? 我怎样得到一个更细分时间单位的alarm函数版本(译者注:希望alarm的时间小于一秒)?
1.5 How can a parent and child process communicate? 父子进程如何通信?
1.6 How do I get rid of zombie processes? 我怎样去除僵死进程?
1.6.1 What is a zombie? 何为僵死进程?
1.6.2 How do I prevent them from occuring? 我怎样避免它们的出现?
1.7 How do I get my program to act like a daemon? 我怎样使我的程序作为守护程序运行?
www.m448 中国最大的资料库下载