Hello, I am simulating restaurant. In this restaurant the people enter by groups of 2,3,4 etc. (for example that a family of 4 enters the restaurant to eat in a table with 6 chairs). I represent the tables in the restaurant with processors. The max content of the processors represents the chairs.
For example, how can I make that a family of 4 enters a processor with a max content of 6 and prevent that 2 more persons enter the same processor to fill the "max content". The processor needs to block itself when a group of people enters and become available again when the group of people exits. Independent if the group of people fills or not the max content.