发布时间:2014-12-15 11:16:36
点击(此处)折叠或打开#include "unipc.h"#define MAXNITIEMS 1000000#define MAXNTHREADS 100int nitems;/*critical region*/int buff[MAXNITIEMS]; /*shared data array*/.........【阅读全文】
发布时间:2014-12-15 11:14:36
点击(此处)折叠或打开#include "unipc.h"#define MAXNITIEMS 1000000#define MAXNTHREADS 100int nitems;/*critical region*/struct { pthr.........【阅读全文】
发布时间:2014-12-15 11:13:36
点击(此处)折叠或打开#include "unipc.h"#define MAXNITIEMS 1000000#define MAXNTHREADS 100int nitems;/*critical region*/struct { pthr.........【阅读全文】
发布时间:2014-12-09 16:17:31
函数原型如下:点击(此处)折叠或打开#include /* For O_* constants */#include /* For mode constants */#include sem_t *sem_open(const char *name, int oflag);sem.........【阅读全文】
发布时间:2014-12-08 16:23:12
添加了头文件#include #include #include 编译gcc -g global_shm.c -o global_shm -Wall时,仍然提示undefined reference to sem_open,原因是需要添加库-lpthread......【阅读全文】