New answers tagged

1 vote

What is the minimum and maximum value of Counter when the two threads are executed concurrently?

While I was initialy convinced by the two previous answers, a colleague of mine showed me the light about this exercise. He claims that the maximum value of the counter is $65$, not $20$. As proof, ...
  • 9,664
0 votes

Why does python's threading library use OS level threads when it can't achieve parallelism?

It's not necessarily true that green threads cannot achieve parallelism. Just check out the runtimes for Go, Elixir, and Clojure - they're doing just fine. While the actual reason as to why Python ...

Top 50 recent answers are included