From 5affa0019a9c876b3c8121e24ae738fe68f96518 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan <vu3rdd@gmail.com> Date: Fri, 17 Jun 2011 20:21:48 +0530 Subject: [PATCH] solution to 3.45 --- src/sicp/ex3_45.rkt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/sicp/ex3_45.rkt 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 -- 2.45.2