[gambit-list] Deadlock problem
Matthew Morgan
matthewdust at gmail.com
Tue Aug 9 14:55:30 EDT 2005
I can't figure out why this deadlocks on me (I'm using beta 14):
(let ((x (open-vector)))
(thread-start! (make-thread (lambda () (write 1 x))))
(thread-start! (make-thread (lambda () (write 2 x))))
(read x)
(read x))
*** ERROR IN ##thread-deadlock-action! -- Deadlock detected
Shouldn't this run to completion (possibly blocking at times to wait
for the writes), and return either 2 or 1?
- Matt
--
http://www.matthewmorgan.net/blog
More information about the Gambit-list
mailing list