What is the main job of an operating system?

A. To print documents

B. To manage the computer's hardware and software

C. To browse the internet only

D. To store files on paper