bitphlipphar 08/22/2023 07:34 PMDepending on the situation, you can use a counting semaphore for this. If you need to acquire 5 resources, you'll need to 'down' the semaphore 5 times. If we're talking multiple different kinds of resources (so a single count isn't enough), there are other approaches. Can you share more details on the scenario you have in mind?