| Bill Allombert on Thu, 19 Sep 2024 22:22:50 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: concurrent computation of a function |
On Thu, Sep 19, 2024 at 03:25:32PM -0400, Max Alekseyev wrote: > Using "seriesprecision" as a semaphore for communication between processes > is a neat idea, but in my case one of the functions relies on integer > factorization, which may or may not take a long time. > I do not see how factor() function can be terminated if the other function > signals it to end. > Or is there a way? Not without changing the C code. If you are really desperate you can run each computation in a different GP instances, using extern(). Cheers, Bill