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

nader at aeinehchi.com nader at aeinehchi.com
Wed Nov 17 10:02:45 EST 2010


Hi

According to JCiP, one must not lock the call to external code.  Question
remains how to enforce a locking or non-blocking algorithm?

Thanks.

> With a single lock perhaps?
>
> On Wed, Nov 17, 2010 at 6:32 AM, <nader at aeinehchi.com> wrote:
>
>> 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.
>>
>> _______________________________________________
>> Concurrency-interest mailing list
>> Concurrency-interest at cs.oswego.edu
>> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>>
>




More information about the Concurrency-interest mailing list