Maggi
What is race condition in threading?
By Maggi in Threading on Oct 06 2010
  • Maggi
    Oct, 2010 6

    Race Conditions

    A race condition occurs when two threads access a shared variableat the same time. The first thread reads the variable, and the second thread reads the same value from the variable. Then the first thread andsecond thread perform their operations on the value, and they race to see which thread can write the value last to the shared variable. The value of the thread that writes its value last is preserved, because thethread is writing over the value that the previous thread wrote

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS