“An overview of the functioning of a computer system / How does computer work”
Powering on the computer:
When you first press the power button, the computer sends a signal to the computer power supply, which converts the alternating current (AC) to direct current (DC). This supplies the computer and its components with the proper amount of voltage and electricity.
Once the computer and its components have received ample power and the power supply reports no errors it sends a signal (using transistors) to the motherboard and the computer processor (CPU). While this is happening, the processor will clear any leftover data in the memory registers and give the CPU program counter an F000 hexadecimal number. This number is the location of the first instruction and tells the CPU that it's ready to process the instructions contained in the basic input/output system (BIOS).
BIOS and the POST:
When the computer first looks at the BIOS, it begins the power-on-self-test (POST) sequence to make sure the components in the computer are present and functioning properly. If the computer does not pass any of these tests, it will encounter an irregular POST. An irregular POST is a beep code that is different from the standard one or two beeps. For example, an irregular POST could generate no beeps at all or a combination of different beeps to indicate the cause of the failure.
If the computer passes POST, it looks at the first 64-bytes of memory located in the CMOS chip, which is kept alive by the CMOS battery even when the computer is turned off. This chip contains information such as the system time and date and information about all the hardware installed on your computer.
After loading the CMOS information, the POST will begin inspecting and comparing the system settings with what is installed on the computer. If no errors are found it will then load the basic device drivers and interrupt handlers for hardware such as the hard drive, keyboard, mouse, floppy drive. These basic drivers allow the CPU to communicate with these hardware devices and allow the computer to continue its boot process.
Next, the POST will check the real-time clock (RTC) or system timer and the computer system bus to make sure both of these are properly working on the computer. Finally, you'll get a picture on your display after the POST has loaded the memory contained on the display adapter and has made it part of the overall system BIOS.
Next, the BIOS checks to see if it's performing a cold boot or warm boot (reboot) by looking at the memory address 0000:0472. If it sees 1234h the BIOS knows that this is a reboot and skips the remainder of the POST steps.
If 1234h is not seen, the BIOS knows that this is a cold boot and will continue running additional POST steps. Next, it tests the computer memory (RAM) installed on the computer by writing to each chip. With early computers, you can see it performing the step as it counts the total installed memory as it's booting.
Finally, the POST will send signals to the computer floppy, optical, and hard drive to test these drives. If all drives pass the test, the POST is complete and instructs the computer to start the process of loading the operating system.
Booting the operating system
After the computer has passed the POST, the computer will start the boot process. This process is what loads the operating system and all of its associated files. Because Microsoft Windows is the most commonly used operating system, this section will cover the process of loading Microsoft Windows.
The BIOS first hands control over to the bootstrap loader, which looks at the boot sector of the hard drive. If your boot sequence in CMOS setup is not set up to look at the hard drive first, it may look at the boot sector on an inserted floppy disk drive or optical disc first before doing this.
In this example, the Microsoft Windows XP NT Loader (NTLDR) is found on the boot sector and tells the computer where to find the remaining code on the hard drive. Next, Windows loads the ntdetect.com file, which displays the Windows splash screen and loads the Windows Registry. After loading the Registry, Windows begins to load dozens of low-level programs that make up the operating system into memory. Many of the initially loaded programs are what allow Windows to communicate with the essential hardware and other programs running on the computer.
After the Registry has loaded the initial basic hardware devices, it begins to load Plug-and-Play devices, PCI, and ISA devices. After loading all these devices, Windows loads full support of the hard drive, partitions, and any other disk drives and then moves to all other drivers that have been installed.
Finally, after successfully completing the above steps any additional required services are loaded and Windows starts.
Hardware devices communicating with the computer
After the computer has loaded the operating system, hardware attached to the computer must be able to communicate with the CPU. Hardware communication is done by using an interrupt request (IRQ). Each time hardware needs the attention of the computer the interrupt controller sends the request (INTR) to the CPU to stop what it is doing to process the request. Anything that was being currently done by the CPU is put on hold and stored as a memory address in the memory stack and is returned to after the interrupt request is processed.
Components of a computer system:
A computer system consists of both hardware and information stored on the hardware. Information stored on computer hardware is often called software. The hardware components of a computer system are the electronic and mechanical parts. The software components of a computer system are the data and computer programs. The major hardware components of a computer system are:
- Processor
- Main memory
- Secondary memory
- Input devices
- Output devices
For typical desktop computers, the processor, main memory, secondary memory, power supply, and supporting hardware are housed in a metal case. Many of the components are connected to the main circuit board of the computer, called the motherboard. The power supply supplies power for most of the components. Various input devices (such as the keyboard) and output devices (such as the monitor) are attached through connectors at the rear of the case.
Input Unit/Input Device
Data and instructions must enter the computer system before any computation can be performed on the supplied data. The input unit that links the external environment with the computer system performs this task. Data and instructions enter input units in forms that depend upon the particular device used. For example, data is entered from a keyboard in a manner similar to typing, and this differs from the way in which data is entered through a mouse, which is another type of input device. However, regardless of the form in which they receive their inputs, all input devices must provide a computer with data that are transformed into the binary codes that the primary memory of the computer is designed to accept. This transformation is accomplished by units called input interfaces. Input interfaces are designed to match the unique physical or electrical characteristics of input devices to the requirements of the computer system.
In short, an input unit performs the following functions.
- It accepts (or reads) the list of instructions and data from the outside world.
- It converts these instructions and data in computer acceptable format.
- It supplies the converted instructions and data to the computer system for further processing.
Output Unit/Output Device
The job of an output unit is just the reverse of that of an input unit. It supplied information and results of the computation to the outside world. Thus it links the computer with the external environment. As computers work with binary code, the results produced are also in the binary form. Hence, before supplying the results to the outside world, it must be converted to human acceptable (readable) form. This task is accomplished by units called output interfaces.
In short, the following functions are performed by an output unit.
- It accepts the results produced by the computer which are in coded form and hence cannot be easily understood by us.
- It converts these coded results to human acceptable (readable) form.
- It supplied the converted results to the outside world.
Storage Unit/ Storage Device
The data and instructions that are entered into the computer system through input units have to be stored inside the computer before the actual processing starts. Similarly, the results produced by the computer after processing must also be kept somewhere inside the computer system before being passed on to the output units. Moreover, the intermediate results produced by the computer must also be preserved for an ongoing processing. The Storage Unit or the primary / main storage of a computer system is designed to do all these things. It provides space for storing data and instructions, space for intermediate results and also space for the final results.
In short, the specific functions of the storage unit are to store:
- All the data to be processed and the instruction required for processing (received from input devices).
- Intermediate results of processing.
- Final results of processing before these results are released to an output device.
Central Processing Unit (CPU)/ Processor
The main unit inside the computer is the CPU. This unit is responsible for all events inside the computer. It controls all internal and external devices, performs "Arithmetic and Logical operations". The operations a Microprocessor performs are called "instruction set" of this processor. The instruction set is “hard-wired” in the CPU and determines the machine language for the CPU. The more complicated the instruction set is, the slower the CPU works. Processors differed from one another by the instruction set. If the same program can run on two different computer brands they are said to be compatible. Programs written for IBM compatible computers will not run on Apple computers because these two architectures are not compatible.
The control Unit and the Arithmetic and Logic unit of a computer system are jointly known as the Central Processing Unit (CPU). The CPU is the brain of any computer system. In a human body, all major decisions are taken by the brain and the other parts of the body function as directed by the brain. Similarly, in a computer system, all major calculations and comparisons are made inside the CPU and the CPU is also responsible for activating and controlling the operations of other units of a computer system.
Arithmetic and Logic Unit (ALU)
The arithmetic and logic unit (ALU) of a computer system is the place where the actual execution of the instructions takes place during the processing operations. All calculations are performed and all comparisons (decisions) are made in the ALU. The data and instructions, stored in the primary storage prior to processing are transferred as and when needed to the ALU where processing takes place. No processing is done in the primary storage unit. Intermediate results generated in the ALU are temporarily transferred back to the primary storage until needed at a later time. Data may thus move from primary storage to ALU and back again as storage many times before the processing is over. After the completion of processing, the final results which are stored in the storage unit are released to an output device.
The arithmetic and logic unit (ALU) is the part where actual computations take place. It consists of circuits that perform arithmetic operations (e.g. addition, subtraction, multiplication, division over data received from memory and capacity to compare numbers (less than, equal to, or greater than).
While performing these operations the ALU takes data from the temporary storage are inside the CPU named registers. Registers are a group of cells used for memory addressing, data manipulation and processing. Some of the registers are general purpose and some are reserved for certain functions. It is a high-speed memory which holds only data from immediate processing and results of this processing. If these results are not needed for the next instruction, they are sent back to the main memory and registers are occupied by the new data used in the next instruction.
All activities in the computer system are composed of thousands of individual steps. These steps should follow in some order in fixed intervals of time. These intervals are generated by the Clock Unit. Every operation within the CPU takes place at the clock pulse. No operation, regardless of how simple, can be performed in less time than transpires between ticks of this clock. But some operations required more than one clock pulse. The faster the clock runs, the faster the computer performs. The clock rate is measured in megahertz (Mhz) or Gigahertz (GHz). Larger systems are even faster. In older systems, the clock unit is external to the microprocessor and resides on a separate chip. In most modern microprocessors the clock is usually incorporated within the CPU.
Control Unit
How the input device knows that it is time for it to feed data into the storage unit? How does the ALU know what should be done with the data once it is received? And how is it that only the final results are sent to the output devices and not the intermediate results? All this is possible because of the control unit of the computer system. By selecting, interpreting, and seeing to the execution of the program instructions, the control unit is able to maintain order and directs the operation of the entire system. Although it does not perform any actual processing on the data, the control unit acts as a central nervous system for the other components of the computer. It manages and coordinates the entire computer system. It obtains instructions from the program stored in main memory, interprets the instructions, and issues signals that cause other units of the system to execute them.
The control unit directs and controls the activities of the internal and external devices. It interprets the instructions fetched into the computer, determines what data, if any, is needed, where it is stored, where to store the results of the operation, and sends the control signals to the devices involved in the execution of the instructions.
"अगर आपको यह पोस्ट पसंद आयी हो तो इसे LIKE और SHARE, COMMENT जरूर करें" और सबसे पहले जानकारी पाने के लिए BLOG को SUBSCRIBE करे "
an overview of functioning of a computer system,functioning of computer system, how does computer works, initial knowledge of a computer
"अगर आपको यह पोस्ट पसंद आयी हो तो इसे LIKE और SHARE, COMMENT जरूर करें" और सबसे पहले जानकारी पाने के लिए BLOG को SUBSCRIBE करे "
an overview of functioning of a computer system,functioning of computer system, how does computer works, initial knowledge of a computer
No comments:
Post a Comment