Abstract
This paper considers the global (l,k)-critical section problem which is the problem of controlling a system in such a way that at least l and at most k processes must be in the critical section at any time in the network, while each process alternates between in the critical section and out of the critical section. In this paper, first, a distributed solution for l-mutual inclusion is proposed in the asynchronous message-passing model. The proposed algorithm uses an ordinary quorum system and all processes play the same role, unlike existing algorithms for k-mutual exclusion. After that, using the proposed algorithm for l-mutual inclusion, we propose a distributed solution for the global (l, k)-critical section problem. The proposed approach is a versatile composition of algorithms for $l$-mutual inclusion and k-mutual exclusion. Its message complexity is typically O(√n), where n is the size of the network.