Giter Club home page Giter Club logo

Comments (4)

kazu-yamamoto avatar kazu-yamamoto commented on August 21, 2024

@barrucadu I hope you find this issue.

from wai.

barrucadu avatar barrucadu commented on August 21, 2024

I'd be surprised if the race condition from 2014 is still happening, since that was due to readMVar being non-atomic in a sufficiently old version of GHC. I'll have a look.

from wai.

barrucadu avatar barrucadu commented on August 21, 2024

Ok, well, I don't really remember exactly what I was showing in the paper there (and I seem to have left that part of the example out of my thesis - but kept the deadlock part), but returning either 0 or 1 here is expected because this code is inherently racy: if you read the value at the same time it's supposed to be updated, what happens? Well, if you're slightly earlier you'll get the old value, if you're slightly after you'll get the new value. Maybe I was just wrong back then and nobody spotted it? Who knows.

The deadlock doesn't happen, which is the important thing.

from wai.

kazu-yamamoto avatar kazu-yamamoto commented on August 21, 2024

@barrucadu Thanks. I'm relieved to hear that. Let's close this issue.

from wai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.