Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #11103

Re: pthread mutex used like a semaphore. Why does it work?

From David Brown <david.brown@hesbynett.no>
Newsgroups comp.os.linux.misc
Subject Re: pthread mutex used like a semaphore. Why does it work?
Date 2014-05-20 21:27 +0200
Organization A noiseless patient Spider
Message-ID <llgaam$97p$1@dont-email.me> (permalink)
References <llavfa$tsr$1@dont-email.me> <lldl9t$u6p$1@dont-email.me> <llfah8$mhc$1@dont-email.me>

Show all headers | View raw


On 20/05/14 12:24, Charles T. Smith wrote:
> On Mon, 19 May 2014 19:16:13 +0000, Chick Tower wrote:
>
>> On 2014-05-18, Charles T. Smith wrote:
>>> How does a PTHREAD_MUTEX_DEFAULT mutex react if a non-owning thread
>>> unlocks it?
>>
>> I think you would have a better chance for an answer in a C newsgroup.
>
>
> Could you recommend one?  The only thing that \.c\. comes up with is
> comp.lang.c.moderated and that appears to be dead.  Although I thought
> that Kettlewell's point was definitive.  Maybe somebody else can suggest
> a way I can break my program, though, to prove to my colleagues that the
> current solution is unacceptable.
>

comp.lang.c is very much alive.  But I wouldn't bother asking about this 
there - after all, this is not a C question.  It's a question about 
mutex's in Linux - you need a Linux newsgroup (or other online forum), 
or perhaps a posix/unix one if it is not Linux specific.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pthread mutex used like a semaphore.  Why does it work? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-05-18 18:51 +0000
  Re: pthread mutex used like a semaphore.  Why does it work? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-05-18 19:26 +0000
  Re: pthread mutex used like a semaphore.  Why does it work? Xavier Roche <xroche@free.fr.NOSPAM.invalid> - 2014-05-19 08:32 +0200
    Re: pthread mutex used like a semaphore.  Why does it work? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-05-19 08:16 +0000
  Re: pthread mutex used like a semaphore.  Why does it work? Richard Kettlewell <rjk@greenend.org.uk> - 2014-05-19 09:12 +0100
    Re: pthread mutex used like a semaphore.  Why does it work? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-05-19 08:27 +0000
  Re: pthread mutex used like a semaphore.  Why does it work? Mark <i@dontgetlotsofspamanymore.invalid> - 2014-05-19 10:50 +0100
  Re: pthread mutex used like a semaphore.  Why does it work? Chick Tower <c.tower@deadspam.com> - 2014-05-19 19:16 +0000
    Re: pthread mutex used like a semaphore.  Why does it work? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-05-20 10:24 +0000
      Re: pthread mutex used like a semaphore.  Why does it work? David Brown <david.brown@hesbynett.no> - 2014-05-20 21:27 +0200
      Re: pthread mutex used like a semaphore.  Why does it work? Chick Tower <c.tower@deadspam.com> - 2014-05-21 02:22 +0000
    Re: pthread mutex used like a semaphore.  Why does it work? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2014-05-20 22:33 -0400
  Re: pthread mutex used like a semaphore.  Why does it work? James Moe <jimoeDESPAM@sohnen-moe.com> - 2014-05-20 11:13 -0700
    Re: pthread mutex used like a semaphore.  Why does it work? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-05-20 19:39 +0000
      Re: pthread mutex used like a semaphore.  Why does it work? Mark <i@dontgetlotsofspamanymore.invalid> - 2014-05-22 08:59 +0100

csiph-web