Search:

Type: Posts; User: hamsasimon

Search: Search took 0.01 seconds.

  1. Yes moving pthread_cond_signal(&testCond) to...

    Yes moving pthread_cond_signal(&testCond) to after the compute() function worked. Also, I created an int variable to keep to make sure the threads go in order.
  2. Trying to implement a thread barrier and running into some hanging problems.

    note: I'm currently using mac os X so I couldn't use the pthread_barrier primitive.

    I'm trying to hold a 'n' number of threads to do a matrix computation on two matrices. Only once every thread...
  3. Thank you, that makes sense.

    Thank you, that makes sense.
  4. OK, that helps a lot with understanding threads....

    OK, that helps a lot with understanding threads. So, when we call the pthread_create() function are we creating a child of the main thread? just as a process would? so, it returns 0 when child...
  5. Question about pthread_create and pthread_join function arguments

    In the documentation that I found on the internet for pthread_join

    the function declaration is the following:

    int pthread_join(pthread_t thread, void **retval);

    where pthread_create is:

    ...
Results 1 to 5 of 6