What is the best way to make a parent thread wait after initializing a child pthread until it receives some signal from the child?
Immediately after spawning a thread with pthread_create, I would like the parent to wait an arbitrary amount of time until the child thread allows it to continue. Here is how I might approach it with a mutex:
What is the best way to make a parent thread wait after initializing a child pthread until it receives some signal from the child?
Immediately after spawning a thread with pthread_create, I would like the parent to wait an arbitrary amount of time until the child thread allows it to continue. Here is how I might approach it with a mutex:
What is the best way to make a parent thread wait after initializing a child pthread until it receives some signal from the child?
Immediately after spawning a thread with pthread_create, I would like the parent to wait an arbitrary amount of time until the child thread allows it to continue. Here is how I might approach it with a mutex: