文章分类 - Linux
Linux操作系统相关
摘要:转自:http://blog.ddup.us/2012/04/11/proactor-and-reactor/在编写服务端软件的时候,如何处理各种I/O事件是其中很重要的一部分。在Unix Network Programming中介绍了5种Unix/Linux下可用的I/O编程模型:1 阻塞式I/O...
阅读全文
摘要:1.如何显示每个线程cpu耗用ps auxH | grep test2.如何定位哪个线程#define THREAD_NUM 8void *myfunc(void *arg){ printf("thread %d\n",*(int *)arg); sleep(1); ...
阅读全文

浙公网安备 33010602011771号