[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Thread safety of GLPK

From: Andrew Makhorin
Subject: Re: [Help-glpk] Thread safety of GLPK
Date: Wed, 14 Apr 2010 20:17:21 +0400

> Just to confirm my understanding, are you saying if I make the
> changes you describe below, that as long as each call to the solver
> referencing the GLPK data structure instances for a single LP problem
> are made from the one thread, i.e. sequentially, I'm fine?

Yes. Please see an implementation example:

(note that the routine names were changed in v4.43; you need to
change the glpenv02.c module).

> I only run into thread safety issues if I were to create multiple
> threads to make GLPK calls on the same LP problem.

> In summary, one thread per LP problem is fine? As this is what I
> want, I only need to be able to run X threads solving X LP problems,
> one each concurrently to be at the MT level I require.

> I do not require MT safe access to a single LP problem.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]