Tag Archives: API
Linux下原生异步IO接口Libaio的用法
Libaio是Linux下原生的异步IO接口,其项目地址在这里。关于异步I/O的介绍参看这里。linux下有两种异步I/O库:一种是glibc实现的aio,其函数命名以aio_*开始,在用户态通过线程+阻塞模型实现;另一种是Linux内核中实现的异步I/O,但是glibc并没有对[......]
GetSystemInfo Function
SYSTEM_INFO Structure
Contains information about the current computer system. This includes the architecture and type of the processor, the[......]
利用Windows api获得CPU使用率
#include <windows.h>
#include <conio.h>
#include <stdio.h>
#define SystemBasicInformation 0
#define[......]