Pagini recente » Diferente pentru blog/joburi-evaluate intre reviziile 4 si 3 | Diferente pentru utilizator/imlore intre reviziile 2 si 6 | Diferente pentru blog/primul-post intre reviziile 8 si 7 | Diferente pentru blog/girls-programming-camp-2011 intre reviziile 7 si 6 | Diferente pentru blog/counter intre reviziile 6 si 5
Diferente pentru
blog/counter intre reviziile
#6 si
#5
Nu exista diferente intre titluri.
Diferente intre continut:
print counter
==
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 reading and writing to the variable are atomic operations. What's the minimum value the counter can have after all threads finished.
Basically you're given 5 5 threads that each increment an integer counter variable exactly 10 times. The variable isn't guarded by any lock. You can assume that reading and writing 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.