   Semaphore api
  I am using visual C++ 2003 in windows XP.I need semaphore in my program, what API should I use for that?What is the most updated and recomended API I should use?Is semaphore not a standard user program service in windows?What should I use instead?Thanks in advance.   
  I have found the create_semaphore and wait, but how do I do signal to the semaphore?   ;CreateSemaphoreReleaseSemaphoreWaitForSingleObjetcUsing Semaphore ObjectsSemaphore ObjectsAll of which are linked from the CreateSemaphore page.   ;  Ok, actually I have already seen it, but I didnt notice that the release semaphore is actually the signal mechanisem.ThanksAnother question, don't I need to release the HANDLE somewhere? how do I release it?   ;  just a FYI: the Boost.Threads library is pretty slick   ;Quote:Original post by The C modest godAnother question, don't I need to release the HANDLE somewhere? how do I release it?You can release it with CloseHandle.   