将晦涩难懂的技术讲的通俗易懂
发布时间:2013-04-23 21:36:00
点击(此处)折叠或打开#include "apue.h"int fun(){ int pid; if((pid=fork())<0) printf("error\n"); else if(pid==0) &n.........【阅读全文】
发布时间:2013-04-16 17:34:34
点击(此处)折叠或打开#include "apue.h"#include <netdb.h>/******************************客户端进程(Client.c)**********************************************/#include <sys/socket.h>#define BUFLEN .........【阅读全文】
发布时间:2013-04-14 09:41:40
在读apue的时候,共享存储区的讲解并没用实例,为此自己写了一个小程序,程序粗创建子进程,由子进程从终端接收字符串存入共享区,父进程从共享区读出字符串并输出。同时,父子进程均输出各自的共享区的地址区间区间。点击(此处)折叠或打开#include "apue.h"#include <sys/shm.........【阅读全文】
发布时间:2013-04-13 17:17:45
点击(此处)折叠或打开#include "apue.h"#include <fcntl.h>int main(void){ int fno; int n; pid_t pid; char* line[MAXLINE]; .........【阅读全文】