scsh-users
[Top] [All Lists]

Re: Regarding threads

To: Gautham Anil <gautham_anil@cse.iitb.ac.in>
Subject: Re: Regarding threads
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Wed, 19 Oct 2005 13:29:49 +0200
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
Gautham Anil <gautham_anil@cse.iitb.ac.in> 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

<Prev in Thread] Current Thread [Next in Thread>