]> git.rkrishnan.org Git - sicp.git/commitdiff
solution to 3.45
authorRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Fri, 17 Jun 2011 14:51:48 +0000 (20:21 +0530)
committerRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Fri, 17 Jun 2011 14:51:48 +0000 (20:21 +0530)
src/sicp/ex3_45.rkt [new file with mode: 0644]

diff --git a/src/sicp/ex3_45.rkt b/src/sicp/ex3_45.rkt
new file mode 100644 (file)
index 0000000..f3dd618
--- /dev/null
@@ -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