An operating system is responsible for managing hardware resources, input and output devices, and system utilities like disk defragmentation. It does not manage the use of viruses, which are malicious programs that security software aims to detect and remove.