[plt-scheme] Creating a suspended thread

From: R. Emre Başar (reb at cs.bilgi.edu.tr)
Date: Mon Apr 13 13:16:05 EDT 2009

Sometimes focusing on one solution is just plain evil. I think my mind
went away while I'm thinking in terms of Python/Java threads.

Thanks a lot.

Matthias Felleisen der ki:
>
> Why create a thread that's suspended? Why not wait until you need it? If 
> your program is so time intensive that starting up the thread until it 
> hits a "suspend" operation, then it is too intensive to even create it at 
> that point.
>
> -- Matthias
>
>
>
> On Apr 13, 2009, at 9:36 AM, R. Emre Başar wrote:
>
>> Hi,
>>
>> I'm tryring to create a thread which is initially suspended.  As far as
>> I know, (thread (lambda () ...)) creates a thread and runs it  
>> instantly.
>> Is it possible to create a thread in suspended state to resume later?
>>
>> I know it's possible to create and suspend it afterwards but our
>> application is rather time intensive so I don't want it to have even a
>> little chance to run.
>>
>> I might solve it using some kind of a locking primitive but I think it
>> would be an overkill to do it that way.
>>
>> Any suggestions?
>>
>> -- 
>> R. Emre Başar
>> İstanbul Bilgi University
>> Department of Computer Science
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>

-- 
R. Emre Başar
İstanbul Bilgi University
Department of Computer Science
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.racket-lang.org/users/archive/attachments/20090413/014d748c/attachment.sig>

Posted on the users mailing list.