From: Ramakrishnan Muthukrishnan Date: Fri, 17 Jun 2011 14:51:48 +0000 (+0530) Subject: solution to 3.45 X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/statistics?a=commitdiff_plain;h=5affa0019a9c876b3c8121e24ae738fe68f96518;p=sicp.git solution to 3.45 --- diff --git a/src/sicp/ex3_45.rkt b/src/sicp/ex3_45.rkt new file mode 100644 index 0000000..f3dd618 --- /dev/null +++ b/src/sicp/ex3_45.rkt @@ -0,0 +1,14 @@ +#lang racket + +#| + +Deposits and Withdrawals are fine. But when it comes to exchange, we need a +"mutually serialized" procedure with something like this: + + (serializer-1 (serializer-2 exchange)) + +Otherwise, we are creating a "time hole" when another execution process can +get hold of one of the account and deposit/withdraw from it which will make +the end result of exchange erroneous. + +|# \ No newline at end of file