Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Full Disclosure: Full-Disclosure
Re: [Code-Crunchers] a simple race condition and how you'd solve it
 

Index | Next | Previous | View Flat


michaelslists at gmail

Jul 2, 2009, 6:01 PM


Views: 300
Permalink
Re: [Code-Crunchers] a simple race condition and how you'd solve it

On Fri, Jul 3, 2009 at 10:25 AM, Gadi Evron<ge[at]linuxbox.org> wrote:
> A friend recently demonstrated on his blog a simple race condition he
> encountered. He also challenged folks to solve the problem.
>
> http://www.algorithm.co.il/blogs/index.php/programming/a-simple-race-condition/
>
> There's an interesting discussion in the comments which is worth a quick
> read.
>
> Also, maybe someone here will come up with a cuter idea?

Posted my proposed solution in the comments, but will probably take a
while to be moderated.

Basically, you just need to check if you should still be computing,
and, at the end of computation, if your data is still "wanted".


>        Gadi.
> --
> Gadi Evron,
> ge[at]linuxbox.org.
>
> Blog: http://gevron.livejournal.com/

--
noon silky
http://lets.coozi.com.au/

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Subject User Time
Re: [Code-Crunchers] a simple race condition and how you'd solve it michaelslists at gmail Jul 2, 2009, 6:01 PM
    Re: [Code-Crunchers] a simple race condition and how you'd solve it Valdis.Kletnieks at vt Jul 2, 2009, 7:04 PM
        Re: [Code-Crunchers] a simple race condition and how you'd solve it pklanka at gmail Jul 2, 2009, 9:04 PM
        Re: [Code-Crunchers] a simple race condition and how you'd solve it fw at deneb Jul 8, 2009, 5:35 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.