In YARN's Capacity Scheduler, queues are configured with guaranteed resource capacities. Users submit jobs to specific queues, not the Resource Manager deciding where. The Resource Manager then allocates available resources (containers) to jobs within their designated queue, prioritizing based on factors like queue capacity, current usage, and job priority. If a queue is underutilized, it can "borrow" resources from others.