Blame


1 665c255d 2023-08-04 jrmu ;; Exercise 3.39. Which of the five possibilities in the parallel execution shown above remain if we instead serialize execution as follows:
2 665c255d 2023-08-04 jrmu
3 665c255d 2023-08-04 jrmu (define x 10)
4 665c255d 2023-08-04 jrmu (define s (make-serializer))
5 665c255d 2023-08-04 jrmu (parallel-execute (lambda () (set! x ((s (lambda () (* x x))))))
6 665c255d 2023-08-04 jrmu (s (lambda () (set! x (+ x 1)))))
7 665c255d 2023-08-04 jrmu
8 665c255d 2023-08-04 jrmu ;; 101
9 665c255d 2023-08-04 jrmu ;; 121
10 665c255d 2023-08-04 jrmu ;; 100