An operating system manages a computer's memory, processes, and hardware/software. It acts as an intermediary between applications and hardware for functions like input/output and memory allocation. A boot loader loads the operating system into memory from permanent storage. It initializes peripherals enough to obtain the OS. A board support package provides an abstraction of hardware like memory and interrupts to facilitate OS communication and control of a target device.