The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Forgotten assumption for multithreading

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Udi Dahan

Posts: 882
Nickname: udidahan
Registered: Nov, 2003

Udi Dahan is The Software Simplist
Forgotten assumption for multithreading Posted: May 30, 2005 1:47 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Udi Dahan.
Original Post: Forgotten assumption for multithreading
Feed Title: Udi Dahan - The Software Simplist
Feed URL: http://feeds.feedburner.com/UdiDahan-TheSoftwareSimplist
Feed Description: I am a software simplist. I make this beast of architecting, analysing, designing, developing, testing, managing, deploying software systems simple. This blog is about how I do it.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Udi Dahan
Latest Posts From Udi Dahan - The Software Simplist

Advertisement
James Arendt found a race-condition in my ThreadSafeQueue. This is what I call a "coding bug".
First of all, I'm glad that James found and raised this issue because now I understand that I missed a critical design point when introducing the ThreadSafeQueue. There should only be one thread dequeuing. This, by design, eliminates the race condition described.
However, there's no reason not to move to the better implementation suggested - it still passes all the tests of the original implementation. I haven't yet been able to write a test that exposes the bug, but I'm not sure it's even possible to do so without substantially changing the implementation.
Thanks again to James.

Read: Forgotten assumption for multithreading

Topic: Intercept Studio a good monitoring application Previous Topic   Next Topic Topic: CMS.RAPID 1.1 presented to partners

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use