ZHAO Wei <email@example.com> writes:
> I have a little script < 100 lines of code. There I spawn a thread
> every awhile. In the thread I call a (run ...). I have put (display
> ...) before and after the (run ...) for debugging purpose.
> The first time a thread being spawned, everything is O.K. The (run
> ...) is being run and (I think) the thread exitted as expected.
> Then after awhile, the second thread is spawned, the after the first
> (display ...), the program hang. Never can I see the second (display
> Is there any clue so I can debug it or any gotcha's I should notice?
Are you sure the program you stared with terminates? Adding a newline
to the debugging message or displaying it to (current-error-port) also
helps forcing output.