chickadee » sicp » thunk->thread

thunk->thread thunkprocedure

Creates a thread from thunk and start the thread.

thunk
The thunk to threadify
(define (thunk->thread thunk)
  (let ((thread (make-thread thunk))) (thread-start! thread) thread))