



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































i
A computer is an electronic device that receives input, stores or processes the input as per user instructions and provides output in desired format. Computers have become an integral part of our lives because they can accomplish easy tasks repeatedly without getting bored and complex ones repeatedly without committing errors. In this tutorial we will discuss in detail about the different parts of computer that enable it to carry out tasks efficiently and correctly. We will also discuss about microprocessors , the brain of computers, which actually do all the assigned tasks.
This tutorial is designed for anyone who wants to understand the basic concepts of what a computer is and how it functions.
There are no prerequisites for this course except a desire to learn about how a computer works. Having worked on a computer would be an added advantage in completing the tutorial.
© Copyright 2017 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected]
Being a modern-day kid you must have used, seen, or read about computers. This is because they are an integral part of our everyday existence. Be it school, banks, shops, railway stations, hospital or your own home, computers are present everywhere, making our work easier and faster for us. As they are such integral parts of our lives, we must know what they are and how they function. Let us start with defining the term computer formally. The literal meaning of computer is a device that can calculate. However, modern computers can do a lot more than calculate. Computer is an electronic device that receives input, stores or processes the input as per user instructions and provides output in desired format.
Computer input is called data and the output obtained after processing it, based on user’s instructions is called information. Raw facts and figures which can be processed using arithmetic and logical operations to obtain information are called data. The processes that can be applied to data are of two types: Arithmetic operations : Examples include calculations like addition, subtraction, differentials, square root, etc. Logical operations : Examples include comparison operations like greater than, less than, equal to, opposite, etc.
The corresponding figure for an actual computer looks something like this: The basic parts of a computer are as follows: Input Unit : Devices like keyboard and mouse that are used to input data and instructions to the computer are called input unit. Output Unit : Devices like printer and visual display unit that are used to provide information to the user in desired format are called output unit. Control Unit : As the name suggests, this unit controls all the functions of the computer. All devices or parts of computer interact through the control unit. Arithmetic Logic Unit : This is the brain of the computer where all arithmetic operations and logical operations take place. Memory : All input data, instructions and data interim to the processes are stored in the memory. Memory is of two types – primary memory and secondary memory. Primary memory resides within the CPU whereas secondary memory is external to it. Control unit, arithmetic logic unit and memory are together called the central processing unit or CPU. Computer devices like keyboard, mouse, printer, etc. that we can see and touch are the hardware components of a computer. The set of instructions or programs that make the computer function using these hardware parts are called software. We cannot see or touch software. Both hardware and software are necessary for working of a computer.
Starting a computer or a computer-embedded device is called booting. Booting takes place in two steps: Switching on power supply Loading operating system into computer’s main memory Keeping all applications in a state of readiness in case needed by the user The first program or set of instructions that run when the computer is switched on is called BIOS or Basic Input Output System. BIOS is a firmware , i.e. a piece of software permanently programmed into the hardware. If a system is already running but needs to be restarted, it is called rebooting. Rebooting may be required if a software or hardware has been installed or system is unusually slow. There are two types of booting: Cold Booting : When the system is started by switching on the power supply it is called cold booting. The next step in cold booting is loading of BIOS. Warm Booting : When the system is already running and needs to be restarted or rebooted, it is called warm booting. Warm booting is faster than cold booting because BIOS is not reloaded.
Historically computers were classified according to processor types because development in processor and processing speeds were the developmental benchmarks. Earliest computers used vacuum tubes for processing, were huge and broke down frequently. However, as vacuum tubes were replaced by transistors and then chips, their size decreased and processing speeds increased manifold. All modern computers and computing devices use microprocessors whose speeds and storage capacities are skyrocketing day by day. The developmental benchmark for computers is now their size. Computers are now classified on the basis of their use or size: Desktop Laptop Tablet Server Mainframe Supercomputer Let us look at all these types of computers in detail.
Desktop computers are personal computers ( PCs ) designed for use by an individual at a fixed location. IBM was the first computer to introduce and popularize use of desktops. A desktop unit typically has a CPU (Central Processing Unit), monitor, keyboard and mouse. Introduction of desktops popularized use of computers among common people as it was compact and affordable. Riding on the wave of desktop’s popularity many software and hardware devices were developed specially for the home or office user. The foremost design consideration here was user friendliness.
Servers are computers with high processing speeds that provide one or more services to other systems on the network. They may or may not have screens attached to them. A group of computers or digital devices connected together to share resources is called a network. Servers have high processing powers and can handle multiple requests simultaneously. Most commonly found servers on networks include: File or storage server Game server Application server Database server Mail server Print server
Mainframes are computers used by organizations like banks, airlines and railways to handle millions and trillions of online transactions per second. Important features of mainframes are: Big in size Hundreds times faster than servers, typically hundred megabytes per second Very expensive Use proprietary OS provided by the manufacturers In-built hardware, software and firmware security features
Supercomputers are the fastest computers on Earth. They are used for carrying out complex, fast and time intensive calculations for scientific and engineering applications. Supercomputer speed or performance is measured in teraflops, i.e. 10^12 floating point operations per second. Chinese supercomputer Sunway TaihuLight is the world’s fastest supercomputer with a rating of 93 petaflops per second, i.e. 93 quadrillion floating point operations per second. Most common uses of supercomputers include: Molecular mapping and research Weather forecasting Environmental research Oil and gas exploration
Software required to run the hardware parts of the computer and other application software are called system software. System software acts as interface between hardware and user applications. An interface is needed because hardware devices or machines and humans speak in different languages. Machines understand only binary language i.e. 0 (absence of electric signal) and 1 (presence of electric signal) while humans speak in English, French, German, Tamil, Hindi and many other languages. English is the pre-dominant language of interacting with computers. Software is required to convert all human instructions into machine understandable instructions. And this is exactly what system software does. Based on its function, system software is of four types: Operating System Language Processor Device Drivers
System software that is responsible for functioning of all hardware parts and their inter- operability to carry out tasks successfully is called operating system ( OS ). OS is the first software to be loaded into computer memory when the computer is switched on and this is called booting. OS manages a computer’s basic functions like storing data in memory, retrieving files from storage devices, scheduling tasks based on priority, etc.
As discussed earlier, an important function of system software is to convert all user instructions into machine understandable language. When we talk of human machine interactions, languages are of three types: Machine-level language : This language is nothing but a string of 0s and 1s that the machines can understand. It is completely machine dependent. Assembly-level language : This language introduces a layer of abstraction by defining mnemonics. Mnemonics are English like words or symbols used to denote a long string of 0s and 1s. For example, the word “READ” can be defined to mean that computer has to retrieve data from the memory. The complete instruction will also tell the memory address. Assembly level language is machine dependent. High level language : This language uses English like statements and is completely independent of machines. Programs written using high level languages are easy to create, read and understand. Program written in high level programming languages like Java, C++, etc. is called source code. Set of instructions in machine readable form is called object code or machine code. System software that converts source code to object code is called language processor. There are three types of language interpreters:
Assembler : Converts assembly level program into machine level program. Interpreter : Converts high level programs into machine level program line by line. Compiler : Converts high level programs into machine level programs at one go rather than line by line.
System software that controls and monitors functioning of a specific device on computer is called device driver. Each device like printer, scanner, microphone, speaker, etc. that needs to be attached externally to the system has a specific driver associated with it. When you attach a new device, you need to install its driver so that the OS knows how it needs to be managed.
A software that performs a single task and nothing else is called application software. Application software are very specialized in their function and approach to solving a problem. So a spreadsheet software can only do operations with numbers and nothing else. A hospital management software will manage hospital activities and nothing else. Here are some commonly used application software: Word processing Spreadsheet Presentation Database management Multimedia tools
Application software that assist system software in doing their work is called utility software. Thus utility software is actually a cross between system software and application software. Examples of utility software include: Antivirus software Disk management tools File management tools Compression tools Backup tools
One of the earliest operating systems was MS-DOS , developed by Microsoft for IBM PC. It was a Command Line Interface ( CLI ) OS that revolutionized the PC market. DOS was difficult to use because of its interface. The users needed to remember instructions to do their tasks. To make computers more accessible and user-friendly, Microsoft developed Graphical User Interface ( GUI ) based OS called Windows , which transformed the way people used computers.
Assembler is a system software that converts assembly level programs to machine level code. These are the advantages provided by assembly level programming: Increases efficiency of the programmer as remembering mnemonics is easier Productivity increases as number of errors decreases and hence debugging time Programmer has access to hardware resources and hence has flexibility in writing programs customized to the specific computer
The major advantage of assembly level language was its ability to optimize memory usage and hardware utilization. However, with technological advancements computers had more memory and better hardware components. So ease of writing programs became more important than optimizing memory and other hardware resources. In addition, a need was felt to take programming out of a handful of trained scientists and computer programmers, so that computers could be used in more areas. This led to development of high level languages that were easy to understand due to resemblance of commands to English language. The system software used to translate high level language source code into machine level language object code line by line is called an interpreter. An interpreter takes each line of code and converts it into machine code and stores it into the object file. The advantage of using an interpreter is that they are very easy to write and they do not require a large memory space. However, there is a major disadvantage in using interpreters, i.e., interpreted programs take a long time in executing. To overcome this disadvantage, especially for large programs, compilers were developed.
System software that store the complete program, scan it, translate the complete program into object code and then creates an executable code is called a compiler. On the face of it compilers compare unfavorably with interpreters because they: are more complex than interpreters need more memory space take more time in compiling source code However, compiled programs execute very fast on computers. The following image shows the step-by-step process of how a source code is transformed into an executable code: