[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: semaphores



Hi

 I would suggest you to take a look at IPC in Stevens, in case you don't know it
already... Good point to start(and end too;-))

<rant>
What's this up and down business? Somebody in kernel team also does quarks or
what? Or particle physicists followed programmers lead?
</rant>

 Shridhar


Deepti Agarwal wrote:
> 
> Hi Friends
> I am new to linux kernal
> I found this in a kernal code while just browsing.
> Can any one explain this semaphores with a good example.
> static struct semaphore cmd_semaphore = MUTEX;
> down(&cmd_semaphore);
> up(&cmd_semaphore);