Tumisang Montsho wrote:OK guys! a bit of elaboration guys, one important application of semaphores is in the enforcement of mutual exclusion but processes using a semaphore must themselves access the semaphore under mutual exclusion. with reference to the operations on semaphores why might problems arise if two or more processes can access a semaphore concurrently.
You *really* need to get your terminology correct. Threads and processes are *not* the same thing. Also. I can't tell which semaphore you are referring to. We have been assuming that you are referring to the semaphore class in the java library (after all, this is a java site), but your other topic seems to imply that you are talking about about the UNIX IPC mechanism.
So, which is it? processes or threads? core library or UNIX IPC?
Henry