Hi - <br><br>what happens when a thread is killed in the middle of executing a dynamic-wind block? Does the post-thunk get executed still?<br><br>I am tracing my <a href="http://www.cs.brown.edu/pipermail/plt-scheme/2009-April/032160.html">hanging thread problem</a> based on Matthew's recommendatioin, and the trace lead me to a dynamic-wind block that first wait on a semaphore and release it in post-thunk. If the thread can be killed without executing post-thunk then the next thread would wait indefinitely (which appears to be what I am experiencing).<br>
<br>If I am on the right track - how can one write kill-safe semaphore code? <br><br>Thanks,<br>yc<br><br>