• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is race codition same as dirty read?

 
Osgar ali
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know what race condition is and I know what dirty read? I just want to know if they are same.
To my understanding we can avoid race condition by synchronized key word and in database we can use Isolation level ReadCommitted.
Please correct me
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are correct about what the two phrases mean. I think it takes more than "synchronized" to avoid race situations, but that is too difficult a question for beginners. Moving thread.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A dirty read is an example of a race condition, but it's not the only kind.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!