Pagini recente » Profil include_Simon | Profil Chris30 | Atasamentele paginii Profil Yoyo22 | Diferente pentru blog/talentbuddy intre reviziile 28 si 6 | Diferente pentru blog/counter intre reviziile 11 si 10
Diferente pentru
blog/counter intre reviziile
#11 si
#10
Nu exista diferente intre titluri.
Diferente intre continut:
print counter
==
The fact that the code is in Python doesn't really matter. Basically you're given 5 threads that each increment an integer variable _counter_ exactly 10 times. The variable isn't guarded by any lock. You can assume that reads and writes to the variable are atomic operations. What's the minimum value the counter can have after all threads finished.
Basically you're given 5 threads that each increment an integer variable _counter_ exactly 10 times. The variable isn't guarded by any lock. You can assume that reads and writes to the variable are atomic operations. What's the minimum value the counter can have after all threads finished.
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.