Operating system
An operating system is the software that manages the hardware of a computer and provides common services to the programs that run on it.
An operating system sits between the hardware and the programs a user runs. Its core is the kernel, which controls the processor, memory, storage and devices. Around the kernel sit libraries, system services and tools, such as a shell and a package manager. Linux, Windows and macOS are the most common operating systems on servers and personal computers.
The operating system lets many programs share one machine safely. It decides which process runs on each processor core and when. It gives each process its own memory and keeps other processes out of it. It also turns raw disk blocks into files and network cards into connections, so programs do not have to drive the hardware themselves.
Every virtual machine and every sandbox runs an operating system of its own. Inside a virtual machine, a guest operating system runs on hardware that the hypervisor emulates or passes through. Containers share the kernel of the host operating system but get their own files and libraries. An agent that runs code in a sandbox therefore works inside a full operating system, with a shell, a file system and installed tools.