What is a race condition? - Cracking the Java Coding Interview

preview_player
Показать описание
Cracking the #Java #Coding #Interview - Question 100: What is a race condition?
Рекомендации по теме
Комментарии
Автор

Congrats for the 100!!! I like the ReadWriteLock that is implemented in the concurrent package

pguti
Автор

Sir, this is specifically Data Race and all Data Race are not Race Condition but all Race Conditions are not Data Race. For example non atomic operations on CHM like containsKey followed by put is Race Condition.

alokdwivedi
Автор

The local variables technically is not 100% true...
Mainly because you can modify fields of local variables...
Otherwise multithreaded sorting algorithms can't work...

Speiger
visit shbcf.ru