need this code to be solved wtihin 20 min solve
Write a program called SharedCounter.cs in which 10 threads each
increment a shared int counter 10 times. When all the threads have
finished, print the final value of the counter. If the initial
value is zero, do you always get 100? Arrange for your code to
sometimes print the wrong answer. (Hint: try using some well-placed
calls to Thread.sleep())
need this code to be solved wtihin 20 min solve Write a program called SharedCounter.cs in which 10 threads each increme
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am