Tag Archives: API

Linux下原生异步IO接口Libaio的用法

2011-10-29 13:30 / Linux / no comment / 253 views /

Libaio是Linux下原生的异步IO接口,其项目地址在这里。关于异步I/O的介绍参看这里。linux下有两种异步I/O库:一种是glibc实现的aio,其函数命名以aio_*开始,在用户态通过线程+阻塞模型实现;另一种是Linux内核中实现的异步I/O,但是glibc并没有对[......]

more…

GetSystemInfo Function

2009-07-01 15:17 / Windows / no comment / 99 views /

SYSTEM_INFO Structure

Contains information about the current computer system. This includes the architecture and type of the processor, the[......]

more…

利用Windows api获得CPU使用率

2009-07-01 15:01 / Windows / no comment / 293 views /

#include   <windows.h>
#include   <conio.h>
#include   <stdio.h>

#define   SystemBasicInformation               0
#define[......]

more…