How can I block a pthread to print a global variable from main and then continue the pthread?

Depending on your platform, unnamed semaphores may not be supported. The following would work in that case, though you may want to create temp names and use them later for the unlinks. The only reason I'm familiar with this is because the platform I normally work on, OS X, does not support unnamed semaphores through 10.8.3, and thus sans-error-checking I have similar behavior your seeing with your code because all the semaphore APIs fail.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions