wait3和wait4 Functions
2016-02-29 20:44
330 查看
提供了与wait,waitpid,waitid函数唯一不能提供的特性:增加了额外的参数,用于存放中止进程的所有资源的汇总和其所有的子进程
the amount of system CPU time
number of page faults
number of signal received
可以
wait3, wait4 - wait for process to change state, BSD style
#include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> pid_t wait3(int *status, int options, struct rusage *rusage); pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage); //Return: process ID if OK, -1 on error
包含了资源信息
the amount of user CPU timethe amount of system CPU time
number of page faults
number of signal received
可以
man getrusage manual查看详细的额外信息
single UNIX specification 版本3已经移除了wait3
相关文章推荐
- SSH连接时出现Host key verification failed的原因及解决方法
- Low-rank representation with local constraint for graph construction
- git push origin master出错:error: failed to push some refs to
- STL容器与拷贝构造函数 http://blog.csdn.net/heyutao007/article/details/6702626
- Train Problem II(卡特兰数+大数乘除)
- C++ vector 类学习笔记 http://blog.csdn.net/whz_zb/article/details/6827999
- ZOJ Paint the Grid Reloaded
- 【杭电oj】1702 - ACboy needs your help again!(栈和队列)
- HDU 1022 Train Problem I(stack)
- View、Canvas、Paint
- 详解Paint的setShader(Shader shader)
- aix5.3下安装svn命令
- PRVF-4661 During cluvfy on AIX platform
- 【分布式存储】GlusterFS failing to mount at boot with Ubuntu 14.04
- win10 Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host
- 11.2 Job Seperation causes WARNINGS and ORA-15025 ORA-27041 With Certain Users (文档 ID 1317692.1)
- 苹果手机safairi不支持position:fixed
- 车型识别“Hyper-class Augmented and Regularized Deep Learning for Fine-grained Image Classification”
- 【杭电】[1702]ACboy needs your help again!
- AIR移动(Starling)开发笔记基础篇