Chapter 2 Hardware and Software
Chapter 2 Hardware and Software
Hardware
and software
mainframe computers and super computers
Mainframe computers
A mainframe computer can have hundreds of
❖Mainframe computers are often referred to simply processor cores and can process a large number of
as mainframes.
small tasks at the same time very quickly.
❖They are used mainly by large organizations for
bulk data-processing applications such as censuses,
Chapter 2
❖ This is because they can run continuously for very maintain or program mainframes.
long periods of time and provide businesses with
security in the shape of extensive encryption in all • new technological developments, specifically
aspects of their operation. Cloud computing, which is accessible from
anywhere, thereby reducing the need to
❖ Governments, banking organizations and maintain expensive hardware within an
telecommunications companies still base their
business dealings on mainframes.
organization.
❖ Many of these computer systems have existed for • The solution may well be to combine the use of
decades and are still working well. mainframes with Cloud computing, thus giving
organizations the flexibility and accessibility of
❖ To shut them down then dispose of the hardware is the Cloud, while at the same time providing the
very expensive, as is the hiring of companies to
securely remove their data. processing power and security of the
mainframe.
Characteristics of mainframe computers and
super computers
• RAS • Availability
• The term ‘RAS’ is frequently used when • This refers to the fact that a mainframe is
Chapter 2
referring to mainframe computers and stands available at all times and for extended periods.
for reliability, availability and serviceability.
• Mean time between failures (MTBF) is a
• Reliability common measure of systems, not just those
involving computers.
❖Mainframes are the most reliable computers
because their processors are able to check • even if the mainframe becomes unavailable
themselves for errors and are able to recover due to failure, the length of time it is
without any undue effects on the mainframe’s unavailable is very short.
operation.
• It is possible for a mainframe to recover quickly,
❖ The system’s software is also very reliable, as it even if one of its components fails, by
is thoroughly tested and updates are made automatically replacing failed components with
quickly to overcome any errors. spares.
• RAS
• Serviceability
Characteristics • This is the ability of a mainframe to discover why a
failure occurred and means that hardware and software
of mainframe
Chapter 2
well, or how fast, the processor deals with data. carried out Per Second (FLOPS).
❖The speed of a mainframe’s CPU is measured in ❖One petaflop is 1 000 000 000 000 floating point
millions of instructions per second (MIPS). operations per second.
❖Mainframes use a very large number of different ❖ Experts are already using the term exaflops,
instructions, with some being straightforward which are 1000 times faster than petaflops, and
and easy to carry out, while others can be more are expecting the first supercomputer to attain
complex and slower to process. this speed sometime in the current decade.
❖It is important that the comparison between the ❖The speed of the current
performance of one mainframe and another is
made by measuring how fast the CPUs are when • fastest supercomputer, at the time of
carrying out the same task.. publication, is 148 petaflops and even the tenth
fastest operates at 18 petaflops.
❖This is referred to as a benchmark test.
Characteristics of mainframe computers and
super computers
Volume of input, output and throughput ❖ A supercomputer is designed for
❖ Mainframes have specialised hardware, called
Chapter 2
❖ Most mainframes run more than one operating system Linux, but most supercomputers utilise
(OS) at any given time and the use of z/OS, z/VM®, and massively parallel processing in that they
Linux®
have many processor cores, each one with
❖ The OS on a mainframe divides a task into various sub- its own OS.
tasks, assigning each one to a different processor core.
❖ Linux is the most popular, mainly because it
❖ When each sub-task has been processed, the results are
recombined to provide meaningful output. is opensource software, that is, it is free to
use.
❖ This is called parallel processing and it is what makes a
mainframe far more efficient than a PC, which, despite
having more than one core these days, has a very limited
capability regarding parallel processing.
Characteristics of mainframe computers and
super computers
•Type of processor •Heat maintenance
❖ Early mainframes had just one processor (the CPU), but ❖ Because of the large number of processors in both
mainframes and supercomputers, overheating
Chapter 2
❖ One major mainframe manufacturer called them ‘CPU ❖ However, recent developments in mainframe
complexes’, which contained many processors. technology involving more powerful hardware
mean the overheating issue has resurfaced.
❖ The number of processor cores found in a mainframe is ❖ More powerful systems produce more heat. What
now measured in the hundreds. were considered to be a relatively cheap option –
❖ By contrast, supercomputers have hundreds of air cooling systems – are becoming more complex
thousands of processor cores. and more expensive to use in more powerful
systems.
❖ Unlike mainframes, modern supercomputers use more
than one GPU or graphics processing unit..
Mainframe computer uses
•Census
❖ Mainframe computers play a vital role in the
daily operations of many organizations. • Census is a term that, when used alone, normally
refers to a population census.
❖ Finance companies, health care providers,
insurance companies energy providers, travel • A population census is an official survey of the
Chapter 2
Mainframes are very reliable and rarely have would find it exceptionally difficult to
any system downtime. This is one reason why transfer all the data they have stored on
organisations such as banks use them. their current mainframe to an alternative
• Most other systems do fail at some point and system.
then have to be rebooted or restarted, as most • Because of a mainframe’s ability to run
people who use laptops or PCs will know. different operating systems, it can cope with
• In addition, hardware and software upgrades data coming in a variety of database formats
can occur while the mainframe system is still which other platforms would find
up and running. problematic.
• Mainframes are getting faster and more • Mainframes have stronger security than
powerful every year and are completely other systems with have complex encryption
outperforming PCs, laptops and other devices. systems and authorisation procedures in
place.
• Mainframes can deal with the huge amounts
of data that some organisations need to store
and process
Advantages and disadvantages of mainframes
and supercomputers
•Disadvantages of mainframe computers •Advantages and disadvantages of supercomputers
• Mainframes are very expensive to buy and can only be • Supercomputers are the fastest data processing
Chapter 2
afforded by large organisations such as multinational computers but are also the most expensive to buy and
banks. install.
• There is also a high cost for the personnel required to • Most supercomputers have one operating system,
run and maintain them. whereas mainframes can have more than one.
• Large rooms are required to house the system, which is • Supercomputers are less fault tolerant than
not needed with other systems. mainframes meaning they are less likely to recover as
quickly in the event of the failure of one component,
• As mainframes become more advanced, the cooling and are down more often than mainframes, although
systems needed become more expensive to install and not as often as some other systems.
run.
• Supercomputers use massively parallel processing,
• Many organisations are migrating to Cloud-based which makes them more powerful compared to the
services so they do not have to buy their own system parallel processing of mainframes, and much more
or hire the expertise required. powerful than PCs which have far fewer processor
• The software required to run mainframe systems is cores than mainframes or supercomputers.
more expensive to buy than using the Cloud.
Compilers
• Most software that runs on computers is
System software in machine code, which is stored in
binary form within the computer.
• Machine code consists of the
instructions that computers understand
• System software refers to the and each instruction is actually a number
Chapter 2
and mathematical in nature. extensively in the early years of AI but apart from
• FORTRAN is rarely used these days, but still remains its use in association with CAD, it is rarely used
popular for simulating large physical systems, such as today.
the modelling of stars and galaxies. • Most high-level language programming for
• COBOL (Common Business-Oriented Language) was modern-day systems is done using languages
developed not long after FORTRAN to help such as C++, C#, Visual Basics or Pascal, among
businesses. others.
• Unlike FORTRAN, which relied on mathematical • These have largely replaced the other languages
equations, COBOL tended to use simple expressions, mentioned above.
such as SUBTRACT money FROM account GIVING
balance, rather than an equation like bal=acc-mon. • However, the development of all these high-level
languages led to the need for software which
could translate a program written in high-level
language into the machine code that computers
could understand.
System software
❖ A compiler is software (a program) that processes •Interpreters
statements written in a highlevel programming language
and converts them into machine language or code that a ❖ An interpreter translates the high-level
Chapter 2
created using a compiler, into one single ❖ The parts of the program can be stored on
executable file. backing storage and then, one at a time,
each part is brought into RAM and compiled.
❖ Most programs are written in modular form.
❖ The resulting object code is then saved to
❖ That is to say, a number of programmers, the backing storage.
write separate pieces of code, or modules
that form the required program when
combined, which has the advantage of
saving time than if one person wrote the
whole code although it is still possible for
one person to write all the modules.
❖ If there is an error only that module has to
be corrected.
System software
•Device drivers
❖ A device driver is a small program
•Linkers that enables the operating system
(OS) and application software to
❖ When all the parts have been compiled, the communicate with a hardware
compiler is no longer required to be in RAM, device.
all the pieces of object code can be brought
Chapter 2
❖ Other devices which need drivers are sound Some of the device drivers are separate to
cards, monitors, mice, SSDs, network cards, the OS, but are often included by the
keyboards, disk drives and many other provider of the OS.
items of hardware.
❖ The OS acts an interface between the user
❖ The device driver, which is, after all, a piece
of system software, performs the same and the computer, as well as supplying
function as translating software. important utilities for managing the
❖ So, application software such as a word computer.
processor sends information to a driver ❖ A utility program is a type of system
saying what it wants the hardware to do;
software that assists users in controlling or
❖ the device driver understands this and maintaining the operation of a computer, its
then tells the hardware what it needs to do.
devices or its software.
System software
❖ The OS allocates a particular part of RAM for
each program, whether it is an application,
system software or a utility that is running.
•Operating systems
❖ It needs to make sure that instructions and
❖ The OS also acts as an interface data from one program do not spread into
between an application program and
another program’s memory allocation,
Chapter 2
backing storage.
❖ In general, it is the operating system’s
❖ It knows the names of each file and responsibility to handle the security of the
exactly where they are stored on the
hard disk, tape, pen drive or SSD. system.
❖ It also keeps a record of any empty ❖ When a user wishes to shut down the
spaces on the medium so that it knows computer, the OS has to safely close all
where new files can be stored. software running on the computer.
❖ Another responsibility of the OS is to ❖ It then shuts itself down bit by bit before
display error messages to the user finally sending a signal to the power
should an error occur which requires
the user to intervene. management hardware to turn off the power.
Utility Software
•The need for utility •programs that deal with file handling.
software
❖ Without utility software, the
Chapter 2
data storage medium such as a hard disk ❖ There are at least two drawbacks:
or SSD for initial use.
❖ after erasing all the files, it would be
❖ It can be performed on a disk that almost impossible to restore them
already has files on it, but all those files
would be erased. ❖ if done repeatedly, it would shorten the
life of the medium.
❖ Disk formatting is usually carried out on
a new disk or on an existing disk if a new ❖ When high-level formatting is carried out, it
OS has to be installed. does not permanently erase data files but
deletes the pointers on the disk that tell the
❖ There are two levels of formatting: low- OS where to find them.
level formatting and high-level
formatting.
Utility Software
❖ Unlike low-level formatting, the files
are retrievable. One benefit of disk
•Types of utility software formatting is that it can remove
•Formatting
viruses.
•Disk defragmentation
Chapter 2
❖ When the lossless compression software might not change over several frames.
sees a repeated sequence of bits it replaces
❖ Lossy compression is commonly used with
the repeated sequences with a special
images and sound, where the loss of some
character which indicates what is being
repeated and how many times. data bits would have little effect.
❖ An advantage of data compression is that it
❖ This type of compression is normally used
means data can be transmitted more
with spreadsheets, databases and word-
quickly over a network or the internet
processed files,
❖ where the loss of just one bit could change
the meaning completely
Utility Software
❖ There are disadvantages however,
such as the fact that data
•Types of utility software compression software uses a lot of
computer memory during the
•Data compression compression process.
Chapter 2
•Back-up
❖ Back-up software is a program that is used to ❖ An incremental back-up is one where only
keep copies of files from a computer or copy the data that has been added or changed
the content of a server’s backing storage. since a specific date and time is backed up.
❖ The back-up is an exact duplicate of the files. ❖ Back-ups can take a long time to carry out
and require a certain amount of storage
❖ It can be used for restoring the original files, space,
should the original files become corrupted or
deleted, accidentally or deliberately. ❖ However, this can lead to difficulties when
❖ Backup software allows the user to select the restoring what may well be several back-
time and type of back-up they want and how ups.
regularly the back-up is to take place.
Utility Software
viruses.
❖ One such method is signature-based
detection, which is based on recognising
existing viruse and heuristic-based
detection method, sometimes referred
to as static heuristic, was devised
whereby a program is decompiled
❖ Behavioural-based malware detection,
sometimes referred to as the dynamic
heuristic method, looks for abnormal or
suspicious behaviour,
Custom-written software and off-the-shelf
software
❖ There are reasons why it would want
to do this.
•Custom-written software ❖ For example, it may need databases
❖ This is software which has to be to be designed which require
specialist programming skills.
Chapter 2
❖ If the company with a new computer for a wide range of users, there may
system is a smaller company, it may turn be a substantial number of features
to one of the large software companies that the purchasing company does
that already produce business software
packages, not need, such as trigonometric
functions or engineering functions.
❖ for example invoicing software,
accounting software, payroll software
and other programs which are available
to all businesses, organisations and the
general public.
Advantages and disadvantages Custom-
written
Advantages software
of custom-written and off-the-shelf
software softwaresoftware
Disadvantages of custom-written
Custom-written software is designed The customer will have to pay the programmers
specifically for the task and will meet all the to write the programs which have to be written
customer’s requirements. specifically for the task and this will cost more
Chapter 2
It will not need to be adapted, unlike off-the- than if they were buying off-the-shelf software.
shelf software, which may be difficult to adapt
to the particular use the customer requires.
If the software does not quite meet what the Because there will only be one programmer or
customer wants, alterations to the software can a small team of programmers, customers may
be find it difficult to get support if anything goes
made by the programmer who is readily wrong. With off-the-shelf software, there are
available. likely to be internet forums or websites to help
users, as well as telephone helplines with
operators who will be experienced with all sorts
of queries other customers have made.
Advantages and disadvantages Custom-
written
Advantages software
of custom-written and off-the-shelf
software softwaresoftware
Disadvantages of custom-written
Off-the-shelf software may have some features It can take a long time to develop the software
which are not necessary for the customer, but since the programmers will be starting from
custom-written software will not have any scratch, whereas off-the-shelf software is
Chapter 2
body, but it is usually the face or hand that ❖ First of all, a camera in conjunction
makes the gestures the computer can with an infrared sensor detects the
interpret.
movements being made in front of it.
❖ An example of where this type of interface is
used is in ‘smart’ homes where a gesture can ❖ The computer, using a special type of
turn on the lights, for example. software, searches through all the
gestures it has stored in a database to
❖ In this area of IT, a gesture can be said to be
any physical movement, large or small, that match it with the input.
can be interpreted by a computer. ❖ Each stored gesture is linked to a
specific command which is then
executed after the gesture has been
matched.
Advantages and disadvantages of
different
❖ Users with disabilities may not be able to types
❖ Despite this potential advantage of a
hold a mouse or click it, so a GUI may not dialogue interface, if there is any
be suitable for them. They may of user
not be interface
background noise when the user is
able to type using a keyboard, so using a speaking, the computer might
CLI would also be inappropriate. They may misunderstand what is being said,
not be able to control the movement of which is not a problem when using
Chapter 2
❖ Generally, the more advanced the type of reasons. A driver in a vehicle may
interface, and this not only means GUIs wish to play a particular piece of
but also includes gesture-based and music using their in-car
dialogue interfaces, the faster the entertainment system. To select it
processing is and the greater the storage using a GUI or a gesture would
space required to store the interface require taking a hand off the steering
software compared with a CLI. wheel, which could be dangerous,
whereas using their voice through a
dialogue interface would not.
Examination-style questions
1. Mainframe computer manufacturers often
refer to RAS. Explain what is meant by the
term ‘RAS’. [3]
2. Explain how high-level language is translated
to run on different computer systems. [5]
3. Describe the terms: [4]
Chapter 2
a) a sector
b) b block
c) c track
d) d c ylinder.
4. Explain what is meant by custom-written
software. [3]
5. Describe the features of a command line
interface. [4]