I really looking for some quick answers here.
What is a semaphore?
What is a Mutex?
Which is used where?
Which is better?
and also another question
In Win32 if a DLL calls malloc() where is the memory allocated from local heap or global heap?
Hope i'm not all over the place.
Semaphores and Mutexes
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Semaphores and Mutexes
Calls to a DLL (including the initial call to DllMain) occur in the context of the process or thread in question, so it comes from the same place that process or thread would get memory from if it called malloc itself.Neo wrote:In Win32 if a DLL calls malloc() where is the memory allocated from local heap or global heap?