• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

The Mutex Thread

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    The Mutex Thread

    Please post in here before updating either binary counting thread and post again when you are done.
    While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

    #2
    It's kind of funny/cool that the binary thread genuinely could be used in a CS lecture as a real-world example of threading issues.
    Originally posted by MaryPoppins
    I'd still not breastfeed a nazi
    Originally posted by vetran
    Urine is quite nourishing

    Comment


      #3
      If I want to post in both do I need 2 locks or 1?

      Comment


        #4
        lock (the one in general).
        merely at clientco for the entertainment

        Comment


          #5
          unlock

          This definitely shows the cost of synchronisation of threads. There is a 1 minute overhead (2x 30 second wait between posts) for what was a 2 second job.
          merely at clientco for the entertainment

          Comment

          Working...
          X