Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Concurrency concept

 
azuki ooh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill is swiping his credit card in the supermarket. His wife is paying a bill online at home.
Bill sees this on the screen:
Your old balance is: $2000
Your debit is: $100
Your new balance is: $1850

His wife sees this on the screen:
Your old balance is: $2000
Your debit is: $50
Your new balance is: $1950

Which one of the following could have occurred?

(a) race condition
(b) condition synchronisation
(c) starvation
(d) mutual exclusion

I think this is a race condition. Am I right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic