3 ms·
Using synchronized, atomic properties and locks is not the right way to do these things as your code gets really complicated when trying to do basic things. On
by stcredzero 13y ago
Using synchronized, atomic properties and locks is not the right way to do these things as your code gets really complicated when trying to do basic things.
One point being made in the op is that you don't have to. Of course, you may be constrained by how the libraries you want to use are structured, but I don't think this is necessarily the case. What if you used the op author's actor framework?