I'm trying to understand how to use semaphores in c#, I know semaphores accept two parameters when initializing it Semaphore(initial count, maximum count). But I don't fully understand what the parameters mean. Here's an analogy I'm using to understand it
Imagine a bathroom with only one stall so that way it's only possible for one person to use it at a time. There's a queue outside the bathroom. using this analogy can you explain what the initial count and maximum count mean.