sicp-ex-3.45



<< Previous exercise (3.44) | Index | Next exercise (3.46) >>


erben

Using Louis's code, in exchanging two accounts we will use the same serializer for two times. One in the serialized-exchange function and the other in the dispatch function. According to the implementation of the serializer, if a process has already acquired a mutex and it wants to acquire that mutex again, the busy waiting will never halt.