您现在的位置: 精品资料网 >> 管理信息化 >> 信息化知识 >> 资料信息

Unix编程常见问题(doc 57页)

所属分类:
信息化知识
文件大小:
157 KB
下载地址:
相关资料:
unix,常见,问题
Unix编程常见问题(doc 57页)内容简介
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? 父子进程如何通信?

..............................