-1

Im sure this question has been answered before, but i was just wondering if they are related in anyway. specifically will a race condition within a piece of code lead to a deadlock.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
fana
  • 13
  • 2
  • 8

1 Answers1

-1

No, a race condition will not necessarily end in a deadlock. This will only occur if, in the process of dealing with a race condition, two processes are both waiting on one another to finish. Please review the definitions of Deadlock and Race Conditions. Specifically the section on critical and non-critical race conditions may be of particular interest.

abalos
  • 1,301
  • 7
  • 12