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.
Ensuring important operations aren't interrupted
You must be signed in to leave a comment
This page doesn't have any comments yet