Chapter 4 - Software
Chapter 4 - Software
1
– advantages and disadvantages of compilers and
interpreters
– the role and functions of integrated development
environment (IDEs) when
writing code.
2
Software
4.1 Types of software and interrupts
4.1.1 System software and application software
Computer needs software to work.
Without software, the hardware items would be useless.
3
Types of software
4
APPLICATION SOFTWARE:
These are programs that allow the user to do specific tasks.
Application software Examples:
1) Word processor
2) Spreadsheet
3) Database
4) Control and measuring software
5) Apps
6) Photo editing software
7) Video editing software
8) Graphics manipulation software
WORD PROCESSOR
Used to manipulate a text document which entered by a keyboard.
Word processing Functions:
• Creating, editing, saving and manipulating text
• Copy and paste
• Spell checkers
• Import photos/images
• Translation into a foreign language
SPREADSHEET:
Used to organize and manipulate numerical data.
Spreadsheets Functions:
• Using formulas for calculations
• Produces graphs
• Using Modelling and “what if” calculations.
5
DATABASE:
Used to organise, manipulate and analyse data. A database is
made up of one or more tables.
Database Functions include:
• Add, delete and modify data in a table.
• Carry out queries on database data.
• Produces reports.
CONTROL AND MEASURING SOFTWARE:
Are designed to allow a computer or microprocessor to interface
with sensors.
They can:
• Measure physical quantities (like: temperatures)
• Control applications (like: chemical process) by comparing
sensor data with stored data and sending out signals.
APPS:
Apps is short for applications – a type of software that downloaded
from an “App Store” and runs on mobile phones or tablets.
Common examples of apps include:
• Video and music streaming
• GPS (global positioning systems)
• Camera facility
6
Used to manipulate videos.
Essentially it includes:
• Rearranging videos
• Adding - removing sections of video and/or audio clips
• Applying colour correction (enhancements)
• Creating transitions between clips in the video footage
7
SYSTEM SOFTWARE:
Used to:
1- Allow hardware to run properly
2- Allow user to communicate with the computer
1- COMPILERS:
A compiler is a computer program used to translate a program
(source code) written in a high-level language (HLL) into machine
code (object code - code which is understood by the computer) to
perform a required task.
Examples of high-level languages include: Java, Python, Visual
Basic, Fortran, C++ and Algol.
2- LINKERS:
A linker (or link editor) is a computer program that takes one or
more object file produced by a compiler and combines them into a
single program which can be run on a computer.
3- DEVICE DRIVERS:
8
A device driver is a software that makes hardware devices to
communicate with the computer's operating system.
Without drivers, a hardware device can’t work with the computer.
All hardware devices connected to a computer have associated
drivers.
Also, when a device is plugged into the USB port of a computer,
the operating system looks for the appropriate driver. An error
message will be produced if it can’t be found.
Examples of drivers:
printers, memory sticks, mouse, CD drivers, and so on.
9
5- UTILITIES:
10
1. Virus checkers
2. Defragmentation software
3. Disk contents analysis and repair
4. File compression and file management
5. Back-up software
6. Security
7. Screensavers.
11
Anti-virus software always Running in the background on a
computer to check for virus attacks.
12
Defragmentation software
When a HDD becomes full, blocks used for files will become
scattered all over the disk surface (in different sectors and tracks).
This will happen because files will become deleted, partially-
deleted, extended and so on over time.
It will be an advantage:
(Note that, this is not a problem when using solid state devices.).
Example:
13
Consider the following scenario using a disk with 12 (numbered 0
to 11) sectors per surface:
1) Step 1:
We have three files (file1, file2 and file3) stored on track 8 of a disk
surface covering all 12 sectors:
2) Step 2:
Now file 2 is deleted by the user and file 1 has data added to it;
however, the file 2 sectors which become vacant are not filled up
straight away by new file 1 data since this would require ‘too much
14
effort’ for the HDD resources; we now get the following (file 1 is
now stored in sectors 0, 1, 2, 3, 10 and 11):
File 1 has now been extended to write data is sectors 10 and 11;
now suppose.
If this continues, the files just become more and more scattered
throughout the disk surfaces. It is possible for sectors 4, 5 and 6
(on track 8) to eventually become used if the disk starts to fill up
and it has to use up whatever space is available.
15
A disk defragmenter will rearrange the blocks of data to store files
in contiguous sectors wherever possible. After defragmentation
Track 8 would now become:
This obviously allows for much faster data access and retrieval
since the HDD will now require fewer read-write head movements
to access and read files 1 and 3.
16
Back-up software
We can take a data backup by:
1- Manual back-ups (using: memory stick - portable HDD).
2- Use the operating system back-up utility.
17
3) Options of where to save back-up files; this can be set up from
the utility to ensure files are automatically backed up to a chosen
device.
18
Security software
1. Manages access control and user accounts (by using user IDs
and passwords).
2. Links into other utility software (like: virus checkers).
3. Protects network interfaces (like: use of firewalls).
4. Uses encryption and decryption for protection.
5. Controlling the updating of software.
Screensavers
19
Screensavers are used for:
1) Protect older CRT (cathode ray tube).
2) A way of customising a device.
3) Part of the computer’s security system.
4) To activate useful background tasks in computer.
20
4- To activate useful background tasks in computer:
To let some tasks that can only run when the computer is in an
(idle) to run at the background.
For example:
• Virus scans
• Distributed computing applications (use the computer’s
resources only when it is idle (like: an online gaming app)).
Device drivers
21
Descriptors include:
1- Vendor id (VID).
2- Product id (PID).
3- Unique serial numbers.
If a device has no serial number, the operating system will treat the
device as new every time it is plugged into a USB port.
Serial numbers must be unique for devices.
Operating systems
22
2) Multitasking
3) Platform for running of application software
4) Management of user accounts
5) Managing files
6) Hardware peripheral management (including drivers)
7) Memory Management
8) Interrupt handling routines
9) Security (manages log on, passwords)
23