I am new to threads and have put together a basic command line application using pthread's. I use pthread_create passing a struct as the final param; starting a new thread which calls "void *thread_routine (void *arg)". I have made a few observations worth noting. - The program doesn't always provide the same results - about 10% of the time the program seg faults
What are some good techniques to use when debugging multi-threaded applications in c++?