摘要:
fork系统调用 #include <sys/types.h> #include <unistd.h> /* Clone the calling process, creating an exact copy. Return -1 for errors, 0 to the new process, 阅读全文
摘要:
select select系统调用的用途是:在一段指定时间内,监听用户感兴趣的文件描述符上的可读、可写和异常等事件。 #include<sys/select.h> /* Check the first NFDS descriptors each in READFDS (if not NULL) fo 阅读全文
摘要:
pipe函数 pipe函数可用于创建一个管道,以实现进程间通信。 #include<unistd.h> /* Create a one-way communication channel (pipe). If successful, two file descriptors are stored i 阅读全文