What does an operating system do?
Every program running on a computer wants a share of the processor, memory, storage and network. The operating system manages those hardware resources and offers the services that programs commonly need, so each application does not have to reinvent them [1]. Another definition in the NIST glossary puts it as the software platform on which other programs run [1]. A text editor, for instance, never needs to know how the disk is laid out. It asks the operating system to save the file, and the operating system handles the rest.
Is it one program or a collection of software?
The definitions disagree a little. One NIST source calls the operating system the "master control application" that runs the computer, while another describes a collection of software that manages hardware and provides common services [1]. Both views hold in practice: there is a central piece, the kernel, surrounded by system software that completes it.
What does a real one look like?
Linux is a good example. Its kernel documentation describes it as a clone of Unix, written from scratch by Linus Torvalds with help from a loosely knit team of developers across the internet [2]. The same document lists true multitasking, virtual memory, shared libraries, proper memory management and networking that includes IPv4 and IPv6 [2]. Each of these is a concrete form of resource sharing. Linux aims for POSIX and Single UNIX Specification compliance and is distributed under the GNU General Public License version 2 [2].