[32 / 2 / ?]
I'm trying to learn how to use pthread.h and there is something I don't understand.
Do I have to run pthread_join every time I create a thread with pthread_create? It seems that if I don't newly created thread doesn't activate. But if I do, the new thread starts running but the main one is suspended. Why, I thought threads are supposed to run concurrently?
Do I have to run pthread_join every time I create a thread with pthread_create? It seems that if I don't newly created thread doesn't activate. But if I do, the new thread starts running but the main one is suspended. Why, I thought threads are supposed to run concurrently?