• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Few Questions on Threads

 
raja singh kumar
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a difference between race condition and deadlock?
 
Maneesh Godbole
Saloon Keeper
Posts: 11312
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes there is.
A race condition the logic will execute but can produce unexpected results.
In a deadlock, the logic execution is blocked for ever.
 
Anton Golovin
Ranch Hand
Posts: 527
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raja singh kumar wrote:Is there a difference between race condition and deadlock?


Hi, Raja,

You may get deadlocks in different parts of code, based on which race condition it is this time, let me just put it this way.

With best regards,

Anton.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic