queue=[] capacity=2 for job in ["A","B","C"]: if len(queue)