Search:

Type: Posts; User: FrankTheKneeMan

Search: Search took 0.00 seconds.

  1. Found it. I wasn't unlocking the right mutex -...

    Found it. I wasn't unlocking the right mutex - I'm using an array of mutexes to lock individual buffer slots, and I was incrementing the array variable, and thus it attempted to unlock the next...
  2. Variable. I've been running it with only one,...

    Variable. I've been running it with only one, just to test functionality. Changed it to a broadcast, but it didn't seem to help. All the literature I've read says that once signaled, the thread...
  3. Well, I've pumped the code full of those...

    Well, I've pumped the code full of those diagnostic print statements, and the output goes something like this:



    Indicating that the consumer thread is hanging on the pthread_cond_wait(); I'll...
  4. PThreads - specifically pthread_cond_wait and pthread_cond_signal

    Having a little problem with a threaded producer/consumer application - one producer, multiple consumers.


    producer(){
    for (i=9; i<argc; i++){
    //handle files
    input = fopen(argv[i], "r");...
Results 1 to 4 of 4