Simple thread-safe class
Let’s write thread-safe class with two properties: – logical property “State” describes state of the object; – numeric property “Count” counts how many relative objects including current one has TRUE state. First approach gives us the following class: Full code is accessible on GitHub Blog repository. This class is not thread-safe that could be easily… Read More Simple thread-safe class