This is the mail archive of the
guile@cygnus.com
mailing list for the guile project.
Re: Coroutines with call/cc
- To: "Peder Chr. Norgaard" <pcn@tbit.dk>
- Subject: Re: Coroutines with call/cc
- From: Mikael Djurfeldt <mdj@nada.kth.se>
- Date: 07 May 1999 11:24:48 +0200
- Cc: roland.kaufmann@space.at, ghouston@easynet.co.uk, chl@tbit.dk, guile@cygnus.com
- Cc: mdj@nada.kth.se
- References: <Pine.GSO.4.10.9904281417260.2576-100000@mailhostnew.tbit.dk>
"Peder Chr. Norgaard" <pcn@tbit.dk> 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.