Ruud H.G. van Tol on Sat, 01 Jul 2023 13:15:42 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: How to interrupt a MT calculation?
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: How to interrupt a MT calculation?
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Sat, 1 Jul 2023 13:10:56 +0200
- Delivery-date: Sat, 01 Jul 2023 13:15:42 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1688209857; bh=RHiHWaVliufOLpU9yWTCyw3/cXXXylgIMEvqVUQgKQo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Nzd0lylNPBToibqguxUxQx0FfEmvBA2aZl2daeuoGeSJ/cf8I9l5OAHKkMviVc8f0 mpWFyQrX93yxWcxcr/h2T8i3my60fMF0FJ3Ce6uKniwO5F5WtFUlzRYixXvMdofl5t 8E1/qiMs4NffdoaTHRZqaHmJP4Gaog+LzGaUT0CRufzQlcpTOAItxnCxHn/YrlvPid aOF+2yGuTlseBGRMOyj/myRHkidbAAerMbZuFQXsjC9LmlpT7jdAPloenBE+3fB5/p PSOvuRIB09USIzd32nSuRPLVFdfwNLJmeMr2vkY76t1jm4dZksR/+hg5a/LKoqPc3b nPhjG2zfJpwqw==
- In-reply-to: <bd5740cc-8058-9008-6193-53a5d66e10c0@filmsons.com>
- References: <d9c3a3c6-3e96-0547-afe7-197183350994@free.fr> <ZJ5/P4I0WfhZbUgZ@seventeen> <bd5740cc-8058-9008-6193-53a5d66e10c0@filmsons.com>
On 2023-06-30 17:17, Jean-Luc Arnaud wrote:
With 2^470-1, first result in 1728 ms, displayed after... 7min, 24,773
ms !!!
Is there another way to interrupt the script as soon as the "error"
occurs?
I wonder if some "stop file" approach" would work here.
It comes down to having a shared "stop condition".
But then each iteration (or group of iterations, etc.) needs to check,
at least at the start, if that flag went up.
And if each iteration can take multiple seconds,
it should also check at loop borders,
without slowing things down too much.
(so no free lunch)
Examples of such stop-conditions:
- shared (error-count) variable is non-zero
- file doesn't exist
- file exists
- file is touched
- file is non-empty
- pipe is non-readable
(etc., just select the fastest)
-- Ruud