Working of a ComputerAuthor : Pandu Ranga Rao N
E - Mail : pandu2050@gmail.com

Its all like Human body!!!...

You may directly answer to this question by saying that a computer works only if Windows is present in the computer or something like that. I am not saying that you are totally wrong. It is Windows that made your system to work, but, how? When you call up some hardware engineer for some problems in your system, he will ask for Driver software etc. Why? For knowing why, you must need to know how computer works, which means working mechanism of a computer.

Its like our stomatch! : Actual computer!...

We are all knows that, normally a computer makes use of software to interact with the hardware to bring some desired output. These softwares are nothing but, programs which in turn consists of set of instructions. An instruction is a code word for performing some action inside a computer.

Organs and external parts of our body !!!...

Apart from external devices, which one can see externally, such as key board, mouse, monitor, printers and more, a computer has internal devices. These internal devices are housed inside the system box which is actually the computer itself.

Heart and Brain inside a computer !!!...

The main device or part is perhaps the CPU. CPU stands for Central Processing Unit and is responsible for overall functioning of other computer components. Various calculations are performed in the CPU. Apart from performing calculations, CPU also directs various internal devices to perform some action based on the instruction given in the program.

Where does the food stay in our body temporarily???...

One may ask now, where do the program stay. For that, I need to explore you now to the world of memory devices. If you ask me generally what Memory devices store, then I will be happy to answer directly, the instructions and the data which we provide to the computer, based on which an action is being performed.

Types of remembrance

The world of memory devices are of two types, out of which the first one will be called as Primary Memory and the second one is known as Secondary Memory.

Store temporarily VS permenently

Data and programs gets stored in these memory types, provided, the contents in the primary memory gets erased automatically, when the computer gets turned off. The contents in the secondary memory will remain as it is, even if the power goes off.

Forget bad experiences in life : It's RAM !!!....

There is only one device which falls under the primary memory category and it is called as RAM (Random Access Memory, some pupil call it as Read Write Access Memory, but, that’s not so popular among techies). This memory is made with many Integrated Circuit (IC) chips which are mounted on a single Printed Circuit Board (PCB). The unit will be mounted on a slot meant for it on the motherboard. The basic function of RAM is to store data and programs which are currently being executed.

Store good memorable experiences in life : its hard disk !!!...

While it is only the RAM which is falling under Primary Memory category, the secondary memory category has got a vast range of devices. The devices range from ROM to a Hard Disk to a Mobile storage known as Micro SD cards. ROM stands for Read Only Memory, which is used to store data and programs which are a part of a common startup routine which brings in actual life to a computer system. Actually, various devices attached to the computer get activated and gets life when the programs inside the ROM gets executed. These collective programs are known as BIOS which stands for Basic Input Output System (BIOS). They are popularly known as BIOS routines.

Remember to do daily common actiivities : Its ROM !!!...

The ROM is a secondary memory which has got subtypes. The subtypes are EPROM, EEPROM. Both EPROM and EEPROM are also ROM except that it is erasable and rewritable in nature. The memory can be erased by using a burner. One should place the unit inside the burner and switch on the power supply. The burning process will erase the contents inside the EPROM. Once erased, the EPROM becomes unusable until one loads some programs and data in it.

Know the internal structure of your permenent storage, how it is made, etc..

The next device which falls under the secondary devices is a Hard Disk. A hard disk is made of round platter, which is mounted on a spindle, inside a rectangular box. The structure of a hard disk resembles our old friend “Gramophone recorder” which was a popular device during 1950’s which was used for recording and playing music. Similar to the gramophone recorder, a hard disk has a head which is used to read and write data from and in to the round platter. A hard disk can store voluminous information in it. While EPROM, EEROM can store only a few Mega Bytes of data in it, a hard disk can store several Tera Bytes (TB) of information in it. In future, the storage sizes can reach several Yotta Bytes (YB).

Brain is located inside the skull of our head, is it not? similar way...

Present popular devices such as CD’s, DVD’s, Blu–Ray disks, Pen drives and several other Micro SD cards do come under secondary storage devices. They store at present, data ranging from several MB’s to several GB’s. The hard disk will be fixed inside the CPU Box and will be considered as internal storage device. The other devices will be considered as external storage devices.

How we do certain actions : Its Program execution !!!...

The programs and data are stored inside the Hard disk. They will be copied on to the RAM for execution purposes when a user requests the program to be executed. Program execution means performing some action based on instructed to do so, by the instructions given in the program.

When we wake up from our bed, what we do ? : Its similar story here !!!...

When the computer gets powered ON, the processor gets initialized and enters into a self test. This routine is well known as Power On Self Test (POST). During this test, the various motherboard components such as DMA controller, Programmable Peripheral Interface, Programmable Interrupt Controller gets tested. The POST routine then transfers its control to BIOS, which initializes basic input/output (I/O) devices. The Basic I/O devices are Keyboard and Monitor. The basic I/O devices should work in order for the computer to work further. The working of computer will come to a stand-still when there is malfunctioning of any of the two devices.

The BIOS will transfer its control to the OS Loader, which is normally located at the first sector of the Hard Disk. If the required OS loader is not located at the first sector, the BIOS gives out an error message, as “Please insert bootable disk and press enter key to continue” or similar message and halts there itself.

If there is an OS Loader, the execution control will be handed over to the OS Loader and OS Loader will load the OS which was installed by the user or by the system’s engineer. The control of execution will be handed over to the OS, once loaded and launched successfully.

The third party devices such as Mouse, sound card, printers, USB and also any other devices gets loaded during the startup routine of the Operating System. Once loaded successfully, the OS will wait for user to give commands to perform some action. From now on, it is the responsibility of the user to launch programs of his choice, in order to work with the computer.

What we do, when some one instruct us to bring something from shop??, its similar story here!!!...

When the user gives some command, the command interpreter will look for the existence of that command and also the type of it. There are two types of commands available, namely, internal and external commands. Internal commands are embedded inside the OS capsule. The external commands are commands originated from user applications or are some programs supplied with the operating system.

Whenever the command is given, OS checks in its command vocabulary. If it finds it there, loads appropriate instructions to execute the command. If does not find in the set, checks in the folders which are preset by the path variable or any other similar settings. If it finds the program file which is meant to run the command, loads the program file in the memory and executes instructions which are found inside the program file.


Author : Pandu Ranga Rao N
E - Mail : pandu2050@gmail.com
 
 
 
 
 
 
   
 
  About Team ProgrammingBasics.In

Contact Team ProgrammingBasics.In

Instructions for submitting your own article
 
 
   
 
X

About Team ProgrammingBasics.In

Right now, we are a small but, dedicated team who strived day and night to alter the pretty old programmingbasics.in into a new conceptual website "The ProgrammingBasics Foundation Library".

From professional point of view, we are a team of professionals who work full time for a small venture called ICan Technologies, Mysore. The venture was started during the year 2010, by an young entrepreneur N. Pandu Ranga Rao.

The articles and topics in the website are the major contributions of freelancers, programmers across the globe. We thank each of them for their valuable contributions. You can also become a contributor by sending some software related articles to us. We will publish it in our website. Instructions for the same are given in the "Instructions for submitting your own article" page.

Contact Us

Team ProgrammingBasics.In
C/O #39, 4th Main, 9th cross,
Subhashnagar, Mysore - 570 007,
Karnataka, India.
Mobile: 7204239797.

Our Main Office:
ICan Technologies, Mysore
Website: www.icantech.in
Mobile: 8050239039

For making use of Advertisement slots on ProgrammingBasics.in,
mail us @ programmingbasics.info@gmail.com. We will e-mail back with the relevent details.

Instructions for submitting your own article

Want to become an article contributor to this site ?

If yes, then send us an article written by you on your own words, neatly typed in MS Word document. If we feel that, you have written the article by using some other article then we will reject the article. Every article we will cross verify, before we publish them. The right to reject the article is with us.

If you want to publish your name and email id's, specify the same in the document.

NOTE: You must give your consent in the email for publishing your email id and your name. Otherwise, your name and email-ids will not get published. We respect your privacy.

One article per document, which means, you must not send more than one article in one document. Everything in the sent document will be treated as one article and your article will get rejected without looking in, further.

The articles must and should be related to computer basics, programming concepts and programming languages. We will not entertain any other topics. Please bear this in your mind, before starting an article write-up.

Articles published in ProgrammingBasics.in are the sole property of ICan Technologies, Mysore. You are here in authorizing ICan Technologies, Mysore to take the ownership of the published article. Rejected articles will not be published and you can try to publish the same in other sites. We will inform you the status of your submitted article within 10 working days, from the date of sent mail. If not responded within 10 days, then you are free to try publishing your article on some other websites. We will simply discard them and will not publish them any further. Once we publish the article, you will not be allowed to publish as it is, in some other website. If we find it, then your article will be removed from site and the removal will be informed to you.

Send your articles to programmingbasics.info@gmail.com with "Article for Publishing" in the subject line.

You must create your own images in PSD (Photoshop Document) only, which is to be supported in CS3 or lower versions. Any animated stuffs, must be in fla files (Flash editable file) and not in any other format and must be readable in Falsh 8.0.

You are now in Computer Basics, Working of a Computer