Originally Posted by minge.zu
call the pthread_exit() in your main function after the threads are spawned.
i did use the pthread_exit() after the threads are being spawned. But, this does not solve the problem. Because, the exit function makes sure that main thread waits for the other threads to terminate.
But, in situations like signal generation, the default action is taken if signal handler is not present. I need to terminate only the thread that caused the signal and not all