The Following Code Snippet Changes the Counter Class to Maintain Individual Counting as in each user Counter will be Incremented Starting from 1
The following code snippet changes the Counter class to maintain individual counting as in each user counter will be incremented starting from 1. So, the Counter will no longer be the shared resource. The CountingTask class is also modified to loop through each user 2 times as shown below. Is there anything wrong with the … Read more