|
From: | Thiago Neves |
Subject: | Re: [Help-glpk] Parallel runs of glpk |
Date: | Wed, 14 Dec 2016 13:12:48 -0200 |
I am interested in running glpk from a multithreaded program.The goal is not to have GLPK itself parallel but instead tohave glpk used many times by different threads for solvingmany different linear programs.As is well known glpk is not thread safe and my questionis about alternative solution to that problem. Here are somepossibilities:A) One is to have to run glpsol standalone by running itas external program with the input file generated by the threadand then read by the thread. But this solution has its costsin terms of runtime. It is easy to program.B) Have one thread that does only call glpk. It is adequatein single threaded performance but potentially expensivesince some thread may wait. Relatively easy to program.C) Use shared memory to exchange data. That is multiplenumber of individual programs running glpk and getting theirdata from shared memory.Any other solution? Is there any implementation that youwould recommend?Mathieu
_______________________________________________
Help-glpk mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-glpk
[Prev in Thread] | Current Thread | [Next in Thread] |