Is there a known recent Linux locking bug that affects the OCaml runtime?
discuss.ocaml.org
discuss.ocaml.org
Microsoft’s equivalent API (WFMO) is free of spurious wakes, I can’t imagine how much harder that makes everything
For example: You know how hard it is to close() in a multithreaded program? [1] And that’s just one system call— one almost everyone thinks they understand. What hope is there for all the other pthreads-code?
For cond/etc: One trick I use is handle passing via an epoll[2]. This works much more reliably than the pthreads API, and whilst it’s slower in a microbenchmark that spins the pthread_cond/mutex/etc apis, real programs don’t do that (or don’t need to), and so it is usually a clear net-win.
Seems like a problem easily solved with a Cron job!
/me exits building
Disclaimer: I'm not in the model-checking community.
If it's hard to formalize futex's behavior, all the better for academics, though it's unfortunate for the rest of us.
Even as an OCaml snob I haven't a clue how you would verify the behavior of this C library formally.
It’s time for me to hook up a dumb terminal to its serial port and leave it there.