[concurrency-interest] How to order the external calls?

nader at aeinehchi.com nader at aeinehchi.com
Wed Nov 17 09:32:51 EST 2010


Suppose you have two methods initialize and terminate.  Both methods call
some external code that results in some state transition in the external
component.

Now, I want to ensure that terminate is not called while initialize is
running, and vice versa.  How can it be achieved effectively.

Thank you very much.



More information about the Concurrency-interest mailing list