<< Previous exercise (3.41)
| Index |
Next exercise (3.43) >>
It's safe to do that change. There is nothing different about concurrency in these two version. The only difference is new one serialize the procedures before call the functions, but the original one do it when call withdraw or deposit.
The original solution and the one proposed by Ben Bitdiddle are essentially the same.