Unit 2 Basics of Computer
Unit 2 Basics of Computer
After processing the data, the result is either Represents physical and tangible components.
stored in the memory for further reference, or it is
Ex: Input devices, output devices, CPU etc.
sent to the outside world through some output.
Software:
To perform the execution of an instruction, in
addition to the arithmetic logic unit, and control Represents the set of programs that govern the
unit, the processor contains a number of registers operation of the computer system and make the
used for temporary storage of data and some hardware run.
special function registers.
Types of Software
The special function registers include program
▪ System software
counters (PC), instruction registers (IR), memory
address registers (MAR) and memory and ▪ Application software
memory data registers (MDR).
System Software:
It is a software that controls internal computer • Assembler: Converts programs written in
operations. assembly language to machine language.
• Interpreter: Converts a HLL program into
Two categories:
machine language by converting and
• Operating System (OS) executing line by line.
• Language Processor • Compiler: Converts HLL program into
machine language but the conversion
Operating System
manner is different. It converts the entire
• A program which acts as an interface program in one go and reports all error in
between a user and the hardware. the program along with the line numbers.
• Primary goal is to make computer system Application Software
convenient to use.
• Secondary goal is to use computer • Set of programs needed to carryout
hardware in efficient manner. operations for a specified application.
• It controls and coordinates the use of • These are the programs written by the
hardware among the various application programmers to enable computer to
programs for the various users. perform specific task.
Types of OSs: Three types are (i) packages, (ii) customize and
(iii) utilities:
• Single Program OS: Single user operating
system, one user can be supported and 1. Packages:
executed by it at any point of time. General software designed are may be used by
• Multi-program OS: It supports individual users in manner they suit their needs
multiprogramming i.e., more than one user and requirements. Such general application
can be supported by it, therefore, more software is Packages.
than one user programs are loaded and
active in the main store at the same time. Some Major Categories are:
Active programs are executed using some Word processing Software:
techniques one by one.
• Time Sharing OS: It uses the time-sharing • It is a package that processes textual
technique. Each active user program is matters and creates organized and
given a fair share of CPU time. The active flawless document.
programs are scheduled for execution • There are program packages available
using certain job scheduling techniques. which can even guide us in adjusting and
• Real Time OS: The jobs have fixed modifying writing skills.
deadlines and the jobs have to be • Electronic cutting and pasting of lines,
completed within their deadlines. If this job words, paragraphs, and text from other
cannot be completed within its deadline, sources can be achieved in a flash.
this situation is called deadline overrun. • Text processing packages gives us
• Multiprocessing OS: A mode of operation everything and much more than what you
in which two or more processors in a could achieve before the advent of the
computer simultaneously process two or computers.
more different portions of the same
Electronic Spreadsheets
program (set of instructions).
• Interactive OS: Interactive in nature. • It a program that accepts data in a tabular
Provides GUI interface to facilitate move form in a row-column and allows to
and easy interaction to users. manipulate, calculate, analyses data in the
desired manner.
Language Processor
• Spreadsheets not only allow manipulation
The system programs which process the High- of data, but also can generate graphs and
Level Language (HLL) to the machine language. charts to show the relationships among
numbers more vividly.
Language Processors are given below:
Database Management System(DBMS) Some Important Utilities:
• DBMS is a package that handle and Text editor
manage a bulk of stored data.
• The utility program is used for creating,
• Data base management software extends
editing text files.
your ability to organize collections of data
• Text editor software supports special
stored in your computer and provides tools
commands for text editing ie, can insert,
for listing subsets of the data that meet
delete, find, replace characters, lines and
specified criteria.
paragraphs.
Desktop Publishing Packages
Backup Utility
• The software that handles page layout by
The utility program facilitates the backing up of
combining the functions of the traditional
disk.
type setter and a layout artist is known as
desktop publishing package. • Back-up means duplicating the disk
• Scanners are available for black and white information, so that in case of any damage
or color pictures to be included in main or data lose, this backed up data may be
body of texting using standard programs used.
and can be included in final layout. • These files or folders or even drives can be
• The design and layout of complete book or backed up using this utility.
journal can be achieved without much
Compression Utility
trouble using a suitable DTP package.
Graphic, Multimedia and Presentation Application • This utility program facilitates the
compression of files.
• The application software that manipulates • Large files can be compressed so that they
image is known as graphic software. take less storage area.
• The software that incorporates images,
Disk Defragmenter
text, sound, computer animation and video
sequence is called multimedia software. • This utilities program attempts to minimize
• The application software that can create the fragmentation on your drive.
professional looking visual aids is called • A file is fragmented when it becomes too
presentation graphic software. large for computer to store in a single
• The visual aids can be computer images, location on a disk.
paper printouts or photographic • Disk defragmenter speeds up disk access
transparencies. by rearranging that files and free space on
2. Customized Software: your computer, so that files are stored in
contiguous units and free space is
• This type of software is tailor made consolidated in on contiguous block.
software according to a user’s requirement.
Anti-virus software
• This type of software is developed to meet
all the requirements specified by the user. • This utility program ensures virus free work
environment.
3. Utilities:
• A computer virus is a computer program
Utilities are those application program that assist that can infect other computer programs by
the computer by performing housekeeping modifying them in such a way as to include
functions like backing up disk or scanning or a copy of itself.
cleaning viruses or arranging information etc. • An antivirus software scans disk for reuses
and removes them, if any virus is found.
Utilities ensures the smooth functioning of the
computers. Operating System
Utilities helps to backup data, remove outdated Software that communicates with hardware and
files or recover data that has been accidently allows programs to run. It provides basic
erased. functionalities.
Common OSs are Windows and Linux. • Initial release on November 20, 1985,
Latest release on December 14, 2020.
MAJOR FUNCTIONS OF OS
• Microsoft Windows is also known as
1. Processor Management Windows and Windows OS.
• It is developed by Microsoft to run personal
2. Storage Management
computers.
3. Information Interchange
2. MacOS:
1. Processor Management:
• Developed and marketed by Apple Inc.
• In multiprogramming environment, OS since 2001(24 March,2001).
decides which program get the processor,
3. iOS (Apple):
when and for how much time. This process
is called Scheduling. • It is a mobile operating system created and
Job Scheduling: developed by Apple Inc. exclusively for its
hardware. iOS is used in phones, iPod,
• It not only assigns priority to jobs but also iPad.
admits new jobs for processing at
4. Android:
appropriate time.
• Program is a set of instruction submitted to • Android OS is a Linux based platform for
the computer, while Process is a program mobile phones.
in execution.
5. Linux:
Criteria for Scheduling:
• Linux is the name of a popular computer
• CPU Utilization: Maximum possible CPU operating system. It is a free software and
utilization. open source development.
• Turn-around Time: Minimum possible
Other functions of OS:
turnaround time.
• Waiting Time: Minimum waiting time. • Manage computer resources.
• Response Time: System should give fast • Establish user interface.
response. • Execute and provide services for
• Throughput: Maximum possible application software.
throughput. (Throughput refers to how • Security
much data can be transferred from one • Error detecting aids
location to another in a given amount of
time. It is used to measure the performance Advantages:
of hard drives and RAM, as well as Internet • Manages inputs and outputs.
and network connections.) • Manages resource allocation.
2. Storage Management: • Provides Graphical User Interface (GUI).
• Converts program into process.
CPU Memory I/O System
Main Program of OS
• Memory is a large array of bytes, each with
its own address. The CPU reads and writes The bootstrap program is loaded into the main
on specific memory address. memory when the computer reboots. The
• Information management bootstrap program loads into the ROM. One main
• A computer system works on information. program of the OS is Kernel. When we load OS in
It stores, processes and provide main memory, first of all kernel loads into the
information. Thus, managing this memory.
information is an important and necessary MEMORY UNITS
task performed by OS.
Memory is the unit responsible for providing the
COMMONLY USED OPERATING SYSTEMS space for storing data.
1. Microsoft Windows:
• The area where computer store something • These are semiconductor memories.
temporarily or permanently is called • It is known as the main memory.
memory. • Usually volatile (retaining data only as long
• Memory is an essential component of any as there is a power supply connected.)
digital computer. memory.
• Data is lost in case power is switched off.
MEMORY
• It is the working memory of the computer.
• Cache Memory • Faster than secondary memories.
• Primary Memory • A computer cannot run without the primary
• Secondary Memory memory.
CACHE MEMORY SEMICONDUCTOR RAM
Cache memory is a very high-speed Semiconductor memory is a digital electronic
semiconductor memory which can speed up the semiconductor device used for digital data
storage, such as computer memory. It typically
CPU.
refers to MOS memory, where data is stored
• It acts as a buffer between the CPU and the within Metal Oxide Semiconductor (MOS)
main memory. memory cells on a silicon integrated circuit
• It is used to hold those parts of data and memory chip.
program which are most frequently used by ADVANTAGES OF SEMICONDUTOR RAM
the CPU.
• The parts of data and programs are • The semiconductor ram contrasts with data
transferred from the disk to cache memory storage media such as hard disks and CDs
by the operating system, from where the which read and write data consecutively
CPU can access them. and therefore the data can only be
• Cache memory is faster than main memory accessed in the same sequence it was
• It consumes less access time as compared written.
to main memory. • Semiconductor memory also has much
• It stores the program that can be executed faster access times than other types of
within a short period of time. data storage; a byte of data can be written
• It stores data for temporary use. to or read from semiconductor memory
• Cache memory has limited capacity. within a few nanoseconds, while access
• It is very expensive. time for rotating storage such as hard disks
is in the range of milliseconds.
PRIMARY MEMORY • For these reasons it is used for main
Primary memory is the main memory of the computer memory (primary storage), to
computer. hold data the computer is currently working
on, among other uses.
• Primary memory holds only those data and
VOLATILE MEMORY
instructions on which the computer is
currently working. Volatile memory loses its stored data when the
• It has a limited capacity and data is lost power to the memory chip is turned off.
when power is switched off.
RAM (Random Access Memory)
• It is generally made up of semiconductor
device. RAM is the internal memory of the CPU for storing
• The CPU communicates directly only with data, program, and program result.
the main memory.
• Access time in RAM is independent of the
• It is divided into two subcategories
address, that is, each storage location
RAM
inside the memory is as easy to reach as
ROM other locations and takes the same amount
of time.
Characteristics of Main Memory
• Data in the RAM can be accessed • DRAM: Camcorders, Hard disk Drives
randomly but it is very expensive. (HDD), graphics card, personal computers,
• RAM is volatile. Hence, a backup video memory, printers, etc
Uninterruptible Power System (UPS) is
Two types of DRAM
often used with computers.
• RAM is small, both in terms of its physical Synchronous and Asynchronous DRAM
size and in the amount of data it can hold.
In Synchronous DRAM, the system clock
RAM is of two types − coordinates or synchronizes the memory
accessing. Therefore, the CPU knows the timing
• Static RAM (SRAM) or the exact number of cycles in which the data
• Dynamic RAM (DRAM) will be available from the RAM to the input, output
Static RAM (SRAM) bus. It increases memory read and write speed.
Overall, the Synchronous DRAM is faster in speed
The word static indicates that the memory retains and operates efficiently than the normal DRAM
its contents as long as power is being supplied.
However, data is lost when the power gets down In asynchronous DRAM, the system clock does
due to volatile nature. not coordinate or synchronizes the memory
accessing. When accessing the memory, the
SRAM chips use a matrix of 6-transistors and no value appears on the input, output bus after a
capacitor. certain period. Therefore, it has some latency that
Characteristic of Static RAM minimizes the speed.
Flash Memory