0
Design a shared counter in java.
Input: Number of threads(n) and Maximum count in each thread(N) Output: Display the value of each counter in parallel, as the value gets incremented in each counter. All the counters should reset to zero when at least one of them reaches maximum count N.
1 Odpowiedź