Unit-4 Revision
Unit-4 Revision
UNIT-4
SOFTWARE
REVISION GUIDE
4.1 Types of Software and Interrupts
Describe the difference between system software and application software and provide
examples of each
» set of programs to control and manage the » used to perform various applications (apps)
operation of computer hardware on a computer
» provides a platform on which other software » allows a user to perform specific tasks
can run using the computer’s resources
» required to allow hardware and software to » may be a single program (for example,
run without problems NotePad) or a suite of programs (for example,
Microsoft Office)
» provides a human-computer interface (HCI)
» Users can execute the software as and
» controls the allocation and usage of when they require it.
hardware resources
Examples
· Spreadsheet: Organize and manipulate
· Compilers: Translate source code data in a table format.
written in a high-level programming language
to machine code that can be executed by a · Word processor: Create and edit text-
computer. based documents with advanced formatting
options.
· Linkers: Combine object files and
libraries to create an executable file or library. · Database: Organize and manage large
amounts of data with efficient searching and
· Device drivers: Control and manage sorting capabilities.
hardware devices and allow them to
communicate with the operating system. · Control and measuring software:
Collect and analyze data from sensors,
· Utility software: Perform specific tasks devices, and systems for process control and
such as system maintenance, file automation.
management, and security management.
· Photo editing: Edit and enhance digital
· Operating system: Manages computer images with various tools and filters.
hardware and software resources and
provides common services for computer · Video editing: Edit and manipulate
programs to run efficiently. video footage with advanced effects,
transitions, and audio editing tools
System software in detail
1. Utility software
❖ Computer users have access to various utility programs, Perform specific tasks such as
system maintenance, file management, and security management.
❖ These programs can be initiated by the user or run in the background, like virus
checkers.
b. Defragmentation software
As HDDs become full, files become scattered, slowing
down data access.
c. Back-up software
● It's important to take manual backups and use
· the operating system backup utility.
● · The utility allows for scheduling backups
and only backs up files with changes.
● · Three versions of a file should be kept for
total security: working, local backup, and
remote backup.
● · Backup files can be saved to a chosen
device.
● · File History builds up a library of past
versions of files that can be accessed by the
user.
d.Security software:
● Manages access control and user accounts
● Links to virus and spyware checkers
● Protects network interfaces with firewalls
● Uses encryption to secure data
● Oversees software updates.
e. Screensavers
● Screensavers display moving and still images
on the monitor after a period of inactivity.
● · Can be used as part of a computer's
security system to automatically log out and
lock the computer when it's unused for a certain
period.
● · Some screensavers can activate
background tasks like virus scans and
distributed computing applications when the
computer is idle.
f. Device drivers
● Device drivers are software that communicate
with the operating system and translate data
into a format understood by a hardware
peripheral device.
● All USB device drivers contain a collection of
information about devices called descriptors;
this allows the USB bus to ask a newly
connected device what it is
● . Descriptors include vendor id (VID), product id
(PID) and unique serial numbers.
● If a device has no serial number associated
with it, the operating system will treat the device
as new every time it is plugged into a USB port.
● Serial numbers must be unique since this could
prove rather interesting if two different devices
with the same serial number were plugged into
a computer at the same time.
Example - Defragmentation software
• An operating system is required for computer systems to function and for users to
communicate with the computer.
• An operating system hides the complexity of software and hardware from users.
• Common examples of operating systems are Microsoft Windows, Apple Mac OS, Google
Android, and Apple IOS.
• Operating systems are stored on hard disk drives or solid-state drives in computers, while
mobile devices store them on solid-state devices due to their smaller size.
a. Human computer
interface (HCI) · The human computer interface (HCI) can be in the form of a
Command Line Interface (CLI) or a Graphical User Interface (GUI).
b. Memory management
· Controls and optimizes the use of primary storage (RAM) and
facilitates data transfer between RAM and secondary storage (HDD/SSD)
during program execution
c. Security management
· Security management is a part of operating systems.
· User accounts, passwords, and user IDs help ensure the privacy of
data.
· Maintaining access rights for all users is important.
· The aim is to prevent illegal intrusion and ensure the privacy of data.
d.Hardware peripheral
management ·
Hardware management involves the management of input and output
peripheral devices. It includes the following tasks:
· Translating data from a file into a format that input/output devices can
understand
e.File management
· » managing disk space by allocating and deallocating space for files
and directories
f.Multitasking
· Each process is allocated resources, such as CPU time and memory,
for a specific time limit.
· Processes are given priorities to ensure that high-priority tasks get the
resources they need.
g. Management of user
accounts · Multiple users can log onto a computer system
· Large computer systems may have complex multi-user setups that the
operating system must manage
· The operating system must maintain accounts for multiple users with
varying levels of data access
b.
4.1.3 Understand how hardware, software and firmware required to run application software
Firmware refers to software that is embedded in hardware devices such as the BIOS,
network cards, and hard drives. Firmware provides low-level control over hardware and
ensures that the hardware is compatible with other hardware components and software.
Firmware provides an interface between the hardware and the operating system, and it
is responsible for translating the commands from the software into the hardware-specific
commands that the device can understand.
When the computer is powered on, the firmware on the BIOS performs a self-test and
checks for the presence of all hardware components. It then loads the operating system
into memory and hands control over to the operating system to run the computer.
An interrupt is a signal sent to the CPU (Central Processing Unit) by a hardware device or
software program, indicating that an event has occurred that requires immediate attention.
» a timing signal
l » an input/output process (for example, a disk drive or printer requiring more data)
» a hardware fault (for example, a paper jam in the printer)
» user interaction (for example, the user presses a key (or keys) on a keyboard,
» software errors that cause a problem (for example,, two processes trying to access the same
memory location)
Explain how interrupts can be used to perform a context switch in a multitasking operating
system/Explain the operation of an interrupt handler routine/Explain the operation of an interrupt
handler routine
● Buffers are used to temporarily store data, allowing multiple tasks to share system
resources and run simultaneously.
● Speed of the data sent to the printer is faster than the time taken for printing each page.
Processor can save time and carry ahead its own task once the data is sent to the
printer buffer
Role of interrupt and buffer for different tasks like printing a document/ send data to disk
drive/Video streaming/
● Data from the document to be printed is sent to the printer buffer from the computer
memory.
● When an interrupt signal is received from the printer, the current task is suspended while
the interrupt is serviced.
● The interrupt signal is sent to request more data to be sent to the printer.
● The contents of the printer buffer are emptied to the printer and the data from the
document is printed.
● When all the data has been printed, the printer buffer becomes empty, and an interrupt
signal is sent to the processor.
● The processor continues with its tasks and is able to carry out other tasks while the
printer buffer is being emptied.
A computer system is running a program that requires real-time response, such as a video
conferencing software. Describe how interrupts can be used to ensure that the program runs
smoothly.
Mike is downloading a video from the internet to his laptop. The speed of data transfer from the
internet is slower than the speed at which data is being sent to the media player.
a What could be used to stop the video from constantly freezing while Mike is watching it on his
laptop?
b While watching the video, Mike is meanwhile printing a 160-page document on his inkjet
printer. Describe how interrupts could be used to allow him to watch his movie at the same time
as the printing is being done. The printer's memory can store up to 20 pages at a time.
Answer
a. In this scenario, Mike can use a media player that utilizes a buffer memory to store some
of the video data that has already been downloaded, while continuing to download the rest of
the video in the background.
b.
To allow Mike to watch his movie while printing the 160-page document, interrupts can be
used to control the printer's printing process.
When an interrupt is sent, the processor stops executing the current task and provides
service for the interrupt.
Printer driver generates an interrupt after every 20 pages.It requests more data to be sent to
the printer
When the Processor in Mike's laptop receives an interrupt signal,it stops the current task
and sends data from the document to the printer buffer.
While the printer buffer is emptied and the printing process going on, the processor can
continue with its own tasks.
This process continues until all 160 pages are printed.This will allow Mike to watch his movie
while the printing is being done.
c.
If the inkjet printer runs out of black ink during the printing process, an interrupt signal will be
sent to the printer driver, and the printing process will pause. An error message or warning light
will be displayed, indicating that the black ink cartridge needs to be replaced. Once the cartridge
is replaced, another interrupt signal can be sent to the printer driver to resume printing. If
printing is continued without replacing the cartridge, the printer will skip printing any text or
graphics that require black ink.
A program must be translated into binary before a computer can use it; this is done by a utility
program called a translator.
4.2.5 Integrated Development Environment (IDE)
● A translator:
● Error diagnostics:
Suggests code completions as the developer types. Example if you write str. Then all the string
functions like upper(), lower() ,etc are displayed .
● Auto-correction:
Automatically corrects errors or typos in code. Auto correction