it is simple implementation of semaphore using queue,

user can insert no of process as they want at a time,but according to the semaphore concept only one process can in critical section,rest of process wait until complete