Jean-Luc ARNAUD on Fri, 30 Jun 2023 02:24:01 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
How to interrupt a MT calculation? |
Hi all,
In such a script:
time()=[getabstime(),getwalltime()];
export(time);
Factor2_MT(n)=
{my(t);
print(pareval([
()->t=time(); factorint(n, 1); time()-t,
()->t=time(); factorint(n, 3); time()-t,
()->t=time(); if (n>2^468-1, factorint(n,
7), factorint(n, 6)); time()-t,
()->t=time(); factorint(n, 9); time()-t,
()->t=time(); factorint(n, 11); time()-t,
()->t=time(); print(factor(n)); time()-t
]))
};
How is it possible to programmatically stop the calculations, let say as soon as a result is returned?
I can't even stop it manually with a Control-C or a break command...
TIA for any advice.
-- Jean-Luc Arnaud