From: "John Chambers" <[EMAIL PROTECTED]>

> Stephen Kellett writes:
> | In message <[EMAIL PROTECTED]>, Jon Freeman
> | <[EMAIL PROTECTED]> writes
> | >I had one for a while but took it down after some abc from somewhere
caused
> | >abcm2ps to loop and I had my ISP phoning me up asking what abcm2ps was
and
> | >telling me that it had been using something like 90% of the processing
power
> | >for a good hour or more. I'm not prepared to take the chance on the
shared
> | >server again.
> |
> | Write a monitor process that monitors your abcm2ps processes. Any
> | process that has been at a high CPU for more than X time, kill it. Or
> | modify abcm2ps to include a monitor thread to do the same task (better
> | as it'll know how long each tune processing has taken).
>
> A monitoring process or thread is radical  overkill  for  this  task.
> We're  talking about a C program.  The standard C library handles the
> job almost trivially (as the term is understood by C programmers ;-).
> Here's  a  demo program that should run anywhere you have a minimally
> POSIX-compliant C library:

<example snipped>

Thanks. I won't try to understand it but I think I should be able to copy
that code and compile abcm2ps with it included. As far as I can make out,
this will be the ideal solution for me. I'll have a play with it over the
weekend.

Jon

To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to