1752788 Members
6024 Online
108789 Solutions
New Discussion юеВ

semaphore

 
SOLVED
Go to solution
Diptiman Basak
New Member

semaphore

Hi,

Can you just brieg me about semaphore??

Dip
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: semaphore

semaphore is roughly equal to a flag. It is either on or off depending upon a result of an expected event.

what exactly do you want to know ? unfortunately, no one here is psychic, but Clay sometimes uses the force to read people's mind :) I'll imitate him and using the force of Jedi order, I'll assume that you want to know about semaphore related kernel parameters but you still need to be more detailed than "brief me about semaphore". Tell us what your problem or question is, in detail.
________________________________
UNIX because I majored in cryptology...
Joseph Loo
Honored Contributor

Re: semaphore

hi dip,

refer to this post:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3865

it should have what u need.

regards.
(p.s. please remember to assign points)
what you do not see does not mean you should not believe
Vibhor Kumar Agarwal
Esteemed Contributor
Solution

Re: semaphore

In simplest terms semaphore is a tag or variable just to keep track of concurrent access of a resource.

Whenever a process tries to access a resource it checks that semaphore, if it has a specific value then it uses that resource otherwise it waits for it.

eg. dozen of process waiting to write a file.
Vibhor Kumar Agarwal