摘要:
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #define min(a,b) ((a)<(b)?(a):(b)) #define MAXNITEMS 1000000 #define MAXNTHREADS 10 int ni 阅读全文
posted @ 2022-10-11 23:20
东宫得臣
阅读(22)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <semaphore.h> const int 阅读全文
posted @ 2022-10-11 14:22
东宫得臣
阅读(36)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> #include <mqueue.h> int main(int argc, char **argv) { mqd_t mqd; void *ptr; size_t len, prio; if(argc!=4) { fpr 阅读全文
posted @ 2022-10-11 12:21
东宫得臣
阅读(23)
评论(0)
推荐(0)