sd9
June 12th, 2009, 12:36 AM
I've just started learning threads and am trying out programs to see how it works.
Using printf statements at parts of the program, I'm getting an idea of how it flows, but I need a better perspective.
Is there a more visual way of seeing how the threads are working? Like...can I see it in a task manager or something?
One more question: why is it that when we compile such a program with -lpthread? Why can't I use the usual g++ -o thread thread.cpp
Using printf statements at parts of the program, I'm getting an idea of how it flows, but I need a better perspective.
Is there a more visual way of seeing how the threads are working? Like...can I see it in a task manager or something?
One more question: why is it that when we compile such a program with -lpthread? Why can't I use the usual g++ -o thread thread.cpp