This is the mail archive of the
mailing list for the guile project.
Re: Coroutines with call/cc
- To: "Peder Chr. Norgaard" <firstname.lastname@example.org>
- Subject: Re: Coroutines with call/cc
- From: Mikael Djurfeldt <email@example.com>
- Date: 07 May 1999 11:24:48 +0200
- Cc: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, email@example.com
- Cc: firstname.lastname@example.org
- References: <Pine.GSO.email@example.com>
"Peder Chr. Norgaard" <firstname.lastname@example.org> writes:
> The cost of the guile thread is in terms of memory: each
> thread needs a large piece of RAM that to allow for any possible stack,
> both C and Scheme. That is fine for heavier things like multiplexing
> network traffic, for instance, but too expensive for an arbitrary data
> access tool.
You can tell Guile how much memory to allocate for threads.
(eval-set! stack <n>)
where <n> is the size of the stack in words.