Torque is a resource manager that helps schedule jobs across a cluster to maximize machine utilization. It handles job submission, monitoring, and accounting. Maui is a scheduling manager that works with Torque to determine which jobs should run and when based on priority, resources, and dependencies to optimize cluster usage. Together they provide a way to automatically run jobs on any node in a distributed computing environment while monitoring status and resource usage.