For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > January 2005 > mutex vs semophres?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author mutex vs semophres?
puzzlecracker

2005-01-20, 9:00 pm

I am interested in binary semaphore in particular.


Thx

Måns Rullgård

2005-01-20, 9:00 pm

"puzzlecracker" <ironsel2000@gmail.com> writes:

> I am interested in binary semaphore in particular.


So what? Nobody here cares the slightest what might interest you.
You've probably been killfiled by most people anyway by now.

Are you some kind of very bad troll, or can you really not take a
hint, however large?

--
Måns Rullgård
mru@inprovide.com
puzzlecracker

2005-01-20, 9:00 pm


M=E5ns Rullg=E5rd wrote:
> "puzzlecracker" <ironsel2000@gmail.com> writes:
>
>
> So what? Nobody here cares the slightest what might interest you.
> You've probably been killfiled by most people anyway by now.
>
> Are you some kind of very bad troll, or can you really not take a
> hint, however large?
>
> --
> M=E5ns Rullg=E5rd
> mru@inprovide.com


Listen, I came here to learn and clarify certain confusing concepts. If
you have nothing better to say except for regurgitating with saliva,
please withhold your comment. Not everyone is so adept and virtuous in
this area.... some people are still neophytes... Ever thought about
that?

Måns Rullgård

2005-01-20, 9:00 pm

"puzzlecracker" <ironsel2000@gmail.com> writes:

> Måns Rullgård wrote:
>
> Listen, I came here to learn and clarify certain confusing concepts.


Perhaps, but you have been repeatedly told that this is the wrong
place to learn the kind of things you are asking about. The proper
place is a good book or online resource. If, after reading and
experimenting, you still do not understand, come here and ask a more
specific question.

> If you have nothing better to say except for regurgitating with
> saliva, please withhold your comment.


If you have nothing better to do than repeatedly posting questions
nobody will answer, please try to refrain from doing it.

> Not everyone is so adept and virtuous in this area.... some people
> are still neophytes... Ever thought about that?


Many times, when I was myself first learning these things, and, more
recently, when teaching computer science at the university, and I'm
reminded practically daily when reading the Usenet.

--
Måns Rullgård
mru@inprovide.com
moi

2005-01-20, 9:00 pm

puzzlecracker wrote:
> Måns Rullgård wrote:
>
>
>
> Listen, I came here to learn and clarify certain confusing concepts. If


And what *did* you learn ?

> you have nothing better to say except for regurgitating with saliva,


No reason to throw dirt here, most of the (initial) answers were very
polite and adequate. for instance , DS's answe on the threads' thread
was very enlighting. If you cannot appreciate quality, don't ask for
more quality, please.

> please withhold your comment. Not everyone is so adept and virtuous in
> this area.... some people are still neophytes... Ever thought about
> that?


Some people are more neophyte than others, I guess. Deal with it.
You _can_ argue with your teachers, but you'll have to put in some
effort yourself, too.

<Ali G MODE>
Respect!
</Ali G mode>
*ploink*

HTH,
AvK
David Schwartz

2005-01-20, 9:00 pm


"puzzlecracker" <ironsel2000@gmail.com> wrote in message
news:1106257006.391939.33480@f14g2000cwb.googlegroups.com...

>I am interested in binary semaphore in particular.


Google for 'mutex' and learn about them. Then google for 'semaphore' and
learn about them. Then come back if you have any questions. The answers to
generic questions are already out there, and it's pointless for someone to
compose the 20 or 30 paragraphs it would take to answer your question just
for you.

DS


bhanu

2005-01-21, 3:59 pm


puzzlecracker wrote:
> I am interested in binary semaphore in particular.
>
>
> Thx


Semaphore is a integer variable, which could be
used to limit the access to the critical sections data to 'n'
processes or threads. Mutex is a binary semaphore (boolean
variable) with two states locked or unlocked. so only one
thread or process could access the critical section data
at any given point of time.

I hope this helps, these are the basics in (thread or process)
synchronization, you can find more about them in most of the
OS books.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com