Next: Mutex Support, Previous: Threading basics, Up: Threading
The interaction of special variables with multiple threads is mostly as one would expect, but users of other Lisps are warned that the behaviour of locally bound specials differs in places from what they may expect.
The last point means that
(defparameter *x* 0)
(let ((*x* 1))
(sb-thread:make-thread (lambda () (print *x*))))
prints 1.