Is semaphore an IPC mechanism?
It depends on the operating system
In Windows named semaphores can be accessed between processes using the CreateSemaphore() and OpenSemaphore() functions
http://msdn.microsoft.com/en-us/library/ms682438%28VS.85%29.aspx