
学习笔记
TilyDog
众少成多,积小致钜
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
times函数
头文件:<sys/times.h> 原型: clock_t times(struct tms *buf); 正确返回墙上时钟经过时间, 出错返回-1 ;可精确统计程序代码运行时间,区分用户态与内核态耗时。其中参数类型struct tms为: struct tms { clock_t tms_utime; //用户CPU时间 clock_t tms_stime; //系统CPU时间原创 2017-12-04 23:36:08 · 2759 阅读 · 0 评论 -
Linux4.4内核MCS/queue spinlocks
/** * queued_spin_lock_slowpath - acquire the queued spinlock * @lock: Pointer to queued spinlock structure * @val: Current value of the queued spinlock 32-bit word * * (queue tail, pending bit, lock value) * * fast : slow原创 2018-06-20 10:13:46 · 1961 阅读 · 0 评论