My basic problem is that I'm having a hard time implementing a Pthread that consists of a round robin dequeuing 4 arrays consisting of ints. Followed by a Pthread that creates random numbers with which to enqueue them with. I've written most of the code for the queue itself and I've read up a lot on Pthreads, but I haven't found anything that explains it clearly. Here is my code for reference. [CODE=c]#include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <pthread.h> #define MaxQueueSize 10 #define FALSE 0 #define TRUE 1 typedef struct { int content[MaxQueueSize]; int head; …

Member Avatar
+0 forum 0

The End.