[Jprogramming] Execution with time limit

Henry Rich HenryHRich at nc.rr.com
Thu Sep 20 12:15:56 UTC 2012


Thanks, that's exactly what I need.

Henry Rich

On 9/20/2012 12:38 AM, Gilles Kirouac wrote:
> Henry
>
>    Did you look at 9!:32 33?
>
>    It may not have the wanted granularity under Windows though.
>
>   ~ Gilles
>
>
> ---------- Original Message -----------
> From: Henry Rich <HenryHRich at nc.rr.com>
> To: Programming forum <programming at jsoftware.com>
> Sent: Wed, 19 Sep 2012 16:30:33 -0400
> Subject: [Jprogramming] Execution with time limit
>
>> I have uses for a conjunction u (6!:4) n defined as 'execute u, but
>> give a timeout error if execution lasts more than n seconds'.
>>
>> I can see 2 uses: first, my immediate need, where I want to run lint
>> on a program that has a long-running sequence.  I would like to halt
>> execution of any verb that takes more than 0.5 seconds.
>>
>> Second, in any interactive system it might be desirable to halt a
>> process that takes too long.
>>
>> This would be fairly easy to implement, I expect, and I'd try it if
>> Jsoftware would solve the problem of how to make official changes.
>>
>> Henry Rich
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ------- End of Original Message -------
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


More information about the Programming mailing list