Tuesday, June 22, 2010

Windows on Linux: Introduction: What's an operating system?

You might ask, 'What does it mean to have an operating system? Doesn't my computer just work?'

Yes and no. Just as a healthy body is in fact a mind-boggling combination of processes and chemical reactions, so a computer that simply does what it needs to do is in fact such a feat of hardware and software engineering that we are mostly innocent of what it takes to make it happen. And your operating system is the brain that orchestrates an amazing body of applications and processes that combine when we go online, send emails, and type documents.

What is an operating system?

An operating system is essentially a program that tells other programs what to do and where to go. If we probe a little deeper, we find that it is actually a conglomeration of programs working together in order to achieve this. It is likened to an eco-system that hosts thousands of programs great and small, most of which live and thrive interdependently.

But however you choose to define it, it is a program, and every computer program has to be loaded and run.

So how does this all happen? How does your computer, a dormant jigsaw puzzle of expensive pieces, become a living, humming entity on your desk?

Let's use the analogy of waking up and going through a morning routine:
Wake up = BIOS
Morning routine = Load the operating system

Waking Up (BIOS)

When you wake up in the morning, you sub-consciously scan your body to make sure that everything is in place. As you lie in bed you open your eyes, stretch your limbs, fingers and toes, and gradually become aware of your body. For the most part, this process occurs below the surface, but if something is different, e.g. an injury, your attention will be drawn to it.

When you switch on a computer, it goes through a similar process of scanning its parts. As the fan begins its familiar hum, your computer will check its memory, hard drive, CD/DVD-Rom, and so on, ticking its items off a checklist and briefly informing you that all is well -- or not, if something is amiss. The checklist it refers to is defined by a tiny program called BIOS, which would still run even if you took out the hard drive because it is built in to the motherboard.

OK, now you're awake, and you need to get ready for work. If you're anything like me, your morning will start by sleepily rolling out of bed and automatically performing routine tasks. We don't give it much thought, but most of us do all these things in the same order every day. It's almost as if we follow a checklist.

toilet
shower
brush teeth
grooming
get dressed
breakfast

Let's come back to the computer. Once it has roused itself and gone through its BIOS checklist of bits and pieces, its morning routine comprises a series of processes that get the operating system dressed and ready for work:

activate the video and audio devices (see the desktop and hear system sounds)
activate the input devices (keyboard and mouse)
load background processes
connect to the internet

As you can see, loading the operating system is the computer's way of getting up, dressed, and ready for its work.

No comments:

Post a Comment