CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
Python Quiz #60

Two Threads One Counter

mediumConcurrency

Two threads each add 1 to a shared counter 100,000 times, and the final value often comes out below 200,000. What went wrong, and what does a Lock fix?