[plt-scheme] Creating a suspended thread
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