Re: [racket-users] Help on Threads

2015-09-28 Thread Sergey Yudin
On Mon, Sep 28, 2015 at 2:05 AM, Neil Van Dyke wrote: > Sergey Yudin wrote on 09/27/2015 04:50 PM: > >> Can you please explain whats wrong with the code ? >> > > The program exits because the main thread exits, even though the > "background" threads are sti

[racket-users] Help on Threads

2015-09-27 Thread Sergey Yudin
Hello! I am very new to Racket and trying to use some samples file th.rkt #lang racket/base (thread (lambda () (for ([i 10]) (sleep 2) (printf "thread 1\n" (thread (lambda () (for ([i 20]) (sleep 1) (printf "t