The operating system maintains information about each process in a data structure called a process control block (PCB). The PCB is created when a new process is started by a user and contains information like the process state, program counter, CPU registers, scheduling information, memory management details, accounting information, and I/O status. PCBs allow the OS to efficiently manage and switch between processes by providing all necessary process details in one place.