python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Haskell IORef usage in concurrent setting
I am having hard time to understand Haskell's memory model. I got stuck implementing a simple lock-free hash map and while trying to reproduce the error on a smaller example I realized I have no idea ...
ekim boran
Votes: 0
Answers: 1
Truly Lock-free MPMC Ring Buffer? Threads able to assist each other to avoid blocking?
This question is inspired by Lock-free Progress Guarantees. The code shown is not strictly lock-free.  Whenever a writer thread is suspended when the queue is not empty or not full, the reader threads...

Nimrod
Votes: 0
Answers: 1
Is a memory barrier required to read a value that is atomically modified?
Given the following:
class Foo
{
public:
    void Increment()
    {
        _InterlockedIncrement(&m_value); // OSIncrementAtomic
    }
    long GetValue()
    {
        return m_value;
    }
pr...
Mark Ingram
Votes: 0
Answers: 3
Synchronization with "versioning" in c++
Please consider the following synchronization problem:
initially:
    version = 0           // atomic variable
    data = 0              // normal variable (there could be many)
Thread A:
    version...
Kiuhnm
Votes: 0
Answers: 1


