发布时间:2014-12-16 15:07:42
点击(此处)折叠或打开#include "../unipc.h"#include "pthread_rwlock.h"int my_pthread_rwlock_unlock(pthread_rwlock_t *rw){ int rc; &nbs.........【阅读全文】
发布时间:2014-12-16 10:54:48
点击(此处)折叠或打开#include "../unipc.h"#include "pthread_rwlock.h"int my_phread_rwlock_tryrdlock(my_pthread_rwlock_t *rw){ int rc; if(rw->rw_mag.........【阅读全文】
发布时间:2014-12-16 10:48:28
点击(此处)折叠或打开#include "../unipc.h"#include "pthread_rwlock.h"int my_phread_rwlock_rdlock(my_pthread_rwlock_t *rw){ int rc; if(rw->rw_magic .........【阅读全文】
发布时间: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.........【阅读全文】