Queue and Its Applications