Scheme 48 Manual | Contents | In Chapter: Threads
Previous: Advanced thread handling | Next: Advanced thread handling

## Advanced thread handling

The following bindings are part of the `threads-internal` structure:

- `(terminate-thread! thread)`
- `(kill-thread! thread)`

`Terminate-thread!` unwinds the thread associated with `thread`, running any pending `dynamic-wind` `after` thunks (in that thread), after which the thread terminates. `Kill-thread!` causes the thread associated with `thread` to terminate immediately without unwinding its continuation.

Previous: Advanced thread handling | Next: Advanced thread handling