摘要:
http://blog.csdn.net/rosetta/ 阅读全文
摘要:
/** This demo shows how to use semaphore between threads.**/#include #include #include #include #include /** Global var*/int number;sem_t sem_id;void*... 阅读全文
摘要:
/** This demo shows how to use semaphore between threads.**/#include #include #include #include #include /** Global shared resource*/struct shared_res... 阅读全文
摘要:
Shared memory based mapping file#include #include #include #include typedef struct { char name[4]; int age;} people;int main(int argc, char **argv){ i... 阅读全文
摘要:
Client:#include #include #include #include #include #include #include #define MSG_SERVER "/msgqueue"#define BUF_LEN 20000int main(int argc,char** argv... 阅读全文
摘要:
#include #include #include void new_op(int,siginfo_t*,void*);int main(int argc,char**argv){ struct sigaction act; union sigval mysigval; int i; int si... 阅读全文
摘要:
(1) Unamed pipe #include <unistd.h>#include <sys/types.h>#include <errno.h>int main(char **argv, int agrc){ int pipe_fd[2]; pid_t pid; char r_buf[100] 阅读全文