Re: Regarding threads

Martin Gasbichler <[email protected]> Wed, 19 Oct 2005 13:29:49 +0200
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>
Gautham Anil <[email protected]> writes:

> Hi,
>
>
> Thanks for the help with exceptions. It was a life saver.
>
> Another issue that came up is that of threads. How well can one manage
> threads in scsh? I basically need to get accurate measurement of
> runtime and memory usage of threads at peroidic intervals. All threads
> can be frozen at this point. Measurement is very important and more
> important than keeping the memory usage low.

The thread system does not record the run-time of threads, even though
it wouldn't be too hard to add it to the schedulers. Recording the
memory usage is much harder and almost impossible in general.

> Would I be better off with processes rather than threads? Also, if I
> go with processes, will it be possible of me to write routines for
> interprocess communication?

Using processes you can of course use the utilities provided by your
OS to perform measurements. For IPC, scsh provides you with pipes and
a rich networking API.

-- 
Martin