Asst 3
Asst 3
Here, in this diagram, the three major components are also shown. So, let us discuss these
major components in detail.
Memory or Storage Unit
As the name suggests this unit can store instruc ons, data, and intermediate results. The
memory unit is responsible for transferring informa on to other units of the computer when
needed. It is also known as an internal storage unit or the main memory or the primary storage
or Random Access Memory (RAM) as all these are storage devices.
Its size affects speed, power, and performance. There are two types of memory in the
computer, which are primary memory and secondary memory. Some main func ons of
memory units are listed below:
Data and instruc ons are stored in memory units which are required for processing.
It also stores the intermediate results of any calcula on or task when they are in
process.
The final results of processing are stored in the memory units before these results are
released to an output device for giving the output to the user.
All sorts of inputs and outputs are transmi ed through the memory unit.
Control Unit
As the name suggests, a control unit controls the opera ons of all parts of the computer but
it does not carry out any data processing opera ons. Execu ng already stored instruc ons, It
instructs the computer by using the electrical signals to instruct the computer system. It takes
instruc ons from the memory unit and then decodes the instruc ons a er that it executes
those instruc ons. So, it controls the func oning of the computer. Its main task is to maintain
the flow of informa on across the processor. Some main func ons of the control unit are listed
below:
Controlling of data and transfer of data and instruc ons is done by the control unit
among other parts of the computer.
The control unit is responsible for managing all the units of the computer.
The main task of the control unit is to obtain the instruc ons or data that is input from
the memory unit, interpret them, and then direct the opera on of the computer
according to that.
The control unit is responsible for communica on with Input and output devices for
the transfer of data or results from memory.
The control unit is not responsible for the processing of data or storing data.
ALU (Arithme c Logic Unit)
ALU (Arithme c Logic Unit) is responsible for performing arithme c and logical func ons or
opera ons. It consists of two subsec ons, which are:
Arithme c Sec on: By arithme c opera ons, we mean opera ons like addi on,
subtrac on, mul plica on, and division, and all these opera ons and func ons are
performed by ALU. Also, all the complex opera ons are done by making repe ve use
of the men oned opera ons by ALU.
Logic Sec on: By Logical opera ons, we mean opera ons or func ons like selec ng,
comparing, matching, and merging the data, and all these are performed by ALU.
Note: The CPU may contain more than one ALU and it can be used for maintaining mers that
help run the computer system.
What Does a CPU Do?
The main func on of a computer processor is to execute instruc ons and produce an output.
CPU work Fetch, Decode, and Execute are the fundamental func ons of the computer.
Fetch: the first CPU gets the instruc on. That means binary numbers that are passed
from RAM to CPU.
Decode: When the instruc on is entered into the CPU, it needs to decode the
instruc ons. with the help of ALU(Arithme c Logic Unit), the process of decoding
begins.
Execute: A er the decode step the instruc ons are ready to execute.
Store: A er the execute step the instruc ons are ready to store in the memory.
Types of CPU
We have three different types of CPU:
Single Core CPU: The oldest type of computer CPU is a single-core CPU. These CPUs
were used in the 1970s. these CPUs only have a single core that performs different
opera ons. This means that the single-core CPU can only process one opera on at a
single me. single-core CPU CPU is not suitable for mul tasking.
Dual-Core CPU: Dual-Core CPUs contain a single Integrated Circuit with two cores. Each
core has its cache and controller. These controllers and cache work as a single
unit. dual-core CPUs can work faster than single-core processors.
Quad-Core CPU: Quad-Core CPUs contain two dual-core processors present within a
single integrated circuit (IC) or chip. A quad-core processor contains a chip with four
independent cores. These cores read and execute various instruc ons provided by the
CPU. Quad Core CPU increases the overall speed of programs. Without even boos ng
the overall clock speed it results in higher performance.
………………………………………………………………………………………………………………………………………...
1 001 11 1011
2 010 12 1100
3 011 13 1101
4 100 14 1110
5 101 15 1111
6 110 16 10000
7 111 17 10001
8 1000 18 10010
Decimal Number Binary Number Decimal Number Binary Number
9 1001 19 10011
10 1010 20 10100
…………………………………………………………………………………………………………………
Q8. What is opera ng system?
Ans. Opera ng System a type of system so ware. It basically manages all the resources of the
computer. An opera ng system acts as an interface between the so ware and different parts
of the computer or the computer hardware. The opera ng system is designed in such a way
that it can manage the overall resources and opera ons of the computer.
Opera ng System is a fully integrated set of specialized programs that handle all the
opera ons of the computer. It controls and monitors the execu on of all other programs that
reside in the computer, which also includes applica on programs and other system so ware
of the computer. Examples of Opera ng Systems are Windows, Linux, Mac OS, etc.
An Opera ng System (OS) is a collec on of so ware that manages computer hardware
resources and provides common services for computer programs. In this ar cle we will see
basic of opera ng system in detail.
Func ons of the Opera ng System
Resource Management: The opera ng system manages and allocates memory, CPU
me, and other hardware resources among the various programs and processes
running on the computer.
Process Management: The opera ng system is responsible for star ng, stopping, and
managing processes and programs. It also controls the scheduling of processes and
allocates resources to them.
Memory Management: The opera ng system manages the computer’s primary
memory and provides mechanisms for op mizing memory usage.
Security: The opera ng system provides a secure environment for the user,
applica ons, and data by implemen ng security policies and mechanisms such as
access controls and encryp on.
Job Accoun ng: It keeps track of me and resources used by various jobs or users.
File Management: The opera ng system is responsible for organizing and managing
the file system, including the crea on, dele on, and manipula on of files and
directories.
Device Management: The opera ng system manages input/output devices such as
printers, keyboards, mice, and displays. It provides the necessary drivers and interfaces
to enable communica on between the devices and the computer.
Networking: The opera ng system provides networking capabili es such as
establishing and managing network connec ons, handling network protocols, and
sharing resources such as printers and files over a network.
User Interface: The opera ng system provides a user interface that enables users to
interact with the computer system. This can be a Graphical User Interface (GUI), a
Command-Line Interface (CLI), or a combina on of both.
Backup and Recovery: The opera ng system provides mechanisms for backing up data
and recovering it in case of system failures, errors, or disasters.
Virtualiza on: The opera ng system provides virtualiza on capabili es that allow
mul ple opera ng systems or applica ons to run on a single physical machine. This
can enable efficient use of resources and flexibility in managing workloads.
Performance Monitoring: The opera ng system provides tools for monitoring and
op mizing system performance, including iden fying bo lenecks, op mizing resource
usage, and analyzing system logs and metrics.
Time-Sharing: The opera ng system enables mul ple users to share a computer
system and its resources simultaneously by providing me-sharing mechanisms that
allocate resources fairly and efficiently.
System Calls: The opera ng system provides a set of system calls that enable
applica ons to interact with the opera ng system and access its resources. System
calls provide a standardized interface between applica ons and the opera ng system,
enabling portability and compa bility across different hardware and so ware
pla orms.
Error-detec ng Aids: These contain methods that include the error messages, and
other debugging and error-detec ng methods.
For more, refer to Func ons of Opera ng System.
Objec ves of Opera ng Systems
Let us now see some of the objec ves of the opera ng system, which are men oned below.
Convenient to use: One of the objec ves is to make the computer system more
convenient to use in an efficient manner.
User Friendly: To make the computer system more interac ve with a more convenient
interface for the users.
Easy Access: To provide easy access to users for using resources by ac ng as an
intermediary between the hardware and its users.
Management of Resources: For managing the resources of a computer in a be er and
faster way.
Controls and Monitoring: By keeping track of who is using which resource, gran ng
resource requests, and media ng conflic ng requests from different programs and
users.
Fair Sharing of Resources: Providing efficient and fair sharing of resources between the
users and programs.
………………………………………………………………………………………………………………………………………………
Rupinder kaur