Ensuring important operations aren't interrupted

  • 7
  • Locked
Take a look at the moveMoney() method. If RANDOM.nextInt(5000) is greater than THRESHOLD_VALUE, then ensure the time slice is surrendered (yield the right of way to the current thread). Add this code to the only acceptable place.
You can't complete this task, because you're not signed in.
Comments
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet