- 博客(5)
- 收藏
- 关注
原创 行政能力测试
http://www.chinagwy.org/html/xczl/qt/200906/16-9267.html http://www.chinagwy.org/html/xczl/qt/200909/27-11623.html http://www.chinagwy.org/html/xczl/qt/200909/23-11554.html看倒数第二段 教材:http://www.chin...
2009-10-15 13:40:07
125
原创 linux进程通信(三)--FIFO
/*fifoserver.c:向FIFO中写入信息*/ #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <fcntl.h> #define FIFO_SERVER "FIFO4" main(int argc,char** argv) { ...
2009-08-25 17:39:55
81
原创 linux进程通信(一)--共享内存--mmap()
二、mmap()及其相关系统调用 mmap()系统调用使得进程之间通过映射同一个普通文件实现共享内存。普通文件被映射到进程地址空间后,进程可以向访问普通内存一样对文件进行访问,不必再调用read(),write()等操作。 注:实际上,mmap()系统调用并不是完全为了用于共享内存而设计的。它本身提供了不同于一般对普通文件的访问方式,进程可以像读写内存一样对普通文件的操作。而Posix或系统V...
2009-08-25 11:30:01
162
原创 linux进程通信(二)--消息队列
/*msgserver.c*/ #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sy...
2009-08-25 11:11:38
79
linux进程通信(一)--共享内存+信号量
/*server.c:向共享内存中写入People*/ #include <stdio.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> int main() { struct People{ char name[10]; int a...
2009-08-24 17:25:41
93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人