|
|
|
Re: Co-thread for parallel processing | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
1. What the proper way to the main thread to wait for all co-threads
until finished?
2. After calling pthread_cond_signal() or pthread_cond_broadcast()
followed by sleep()/nanosleep(),
the condition variable looks like not signaled, (the co-thread
routine doesn't run). What make this?
I think you need a pthread_cond_broadcast () after do_work () in each
thread.
Regards, Seenu. -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |
![]() |