title: Can Semaphore be made FIFO
body: <p>I want to create a semaphore object that allows 100 concurrent calls and wait for the thread to be released before additional calls happen to the critical piece of code in .NET C#. I'm able to achieve this with semaphore. But since semaphore does not guarantee any order of execution with waiting threads, the further calls to that critical piece is order-less. But somehow I want to implement FIFO with waiting threads. Is there a way to do it </p>