Some very good discussion here on stack vs heap. Read it entirely. Though it sounds theoretical they are very important when you get to real world problem solving http://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap And some more over here for stack overflow: http://stackoverflow.com/questions/26158/how-does-a-stack-overflow-occur-and-how-do-you-prevent-it
The title seemed to bug me a lot, until today when i found a really good explanation. If you google for the difference between Mutex and Semaphore you will see in most of the places it is mentioned that mutex is a binary semaphore. But mutex is not actually a binary semaphore. See these links…