What are two tasks performed by a operating system?

The operating system controls lots of things. Some specific tasks include: control access to memory; control the running of programs; control access to the hard disk; control user access; provide many useful functions that can be used by other programs. Take your pick.