What is an operating system? What is its purpose?

Today, not only computers but almost all electronic devices have an operating system. So, what is an operating system? What is its purpose?

Shiftdelete.Net is a member of the Association of Internet Media and IT Reporters.