Programming Principles and Techniques - Session 1
Programming Principles and Techniques - Session 1
Programming Principles and Techniques - Session 1
nl
O
se
U
tre
en
C
h
ec
pt
Session 1- Introduction to
rA
Computers
Fo
y
nl
O
Define a computer system
se
U
Describe parts of a computer
tre
en
C
Explain the computer system startup process
h
ec
pt
se
to a set of instructions in a well-defined manner
The computer system consists of different parts
U
namely:
tre
Central Processing Unit (CPU)
en
Motherboard
C
Random Access Memory (RAM)
h
Hard disk
ec
the motherboard
rA
se
processing power
U
The different types of computers are as follows:
tre
en
Personal Computers
C
h
WorkStation
ec
pt
MiniComputer
rA
SuperComputer
Fo
y
nl
O
They are relatively small as compared to
se
supercomputers and mainframes
U
tre
They are inexpensive and designed for individual users
en
C
They are used in business, homes, and schools for
surfing Internet, playing games, listening to music, and
h
so on
ec
pt
se
Laptop
These computers
computersare
arenot
light-weight
portable and
and are
portable
designed to fit
on desk
U
The physical size of a laptop is the primary factor that
tre
determines
They are much
thesmaller
cost of ainlaptop
size, easy to use, and cheap as
en
compared to other types of PCs
C
Laptops that are smaller in size are known as notebooks
h
They are most commonly used in offices, homes, cyber
ec
cafe, and so on
pt
rA
Fo
y
nl
O
Handheld
Tablet PCsComputers or PDA
A
se
PDA PCs
Tablet
Mobile also known
are
phones thatasare
similar atopalmtop computer
notebook
integrated PC and
with or a pocket
have
PDA a touchPC,
is a handheld
screen miniature
or penare
functionality enabled computer
calledinterface
Smartphones
U
tre
They are smaller andand
very useful lighter in weight
popular and can
for writing be carried
notes in the in
en
afields
pocket
of law, education, and medicine
These
C
h
devices
This type hold data
of computer suchmobility
offers as schedules, notes,
for a user who does
ec
appointments,
not have enough address
space book, and
to work many
with more laptop, or
a desktop,
pt
notebook PC
rA
Fo
Fo
rA
pt
ec
h
C
en
tre
U
se
O
nl
y
Fo
rA
pt
ec
h
C
en
tre
U
se
O
nl
y
y
nl
O
SuperComputers are fast computers that can execute trillions
se
of instructions per second
U
tre
en
They are used by applications that require intensive numerical
computations such as weather forecasting, nuclear energy
research, oil and gas exploration, and so on
C
h
ec
pt
se
system are as follows:
U
tre
Processor RAM ROM HDD Monitor Keyboard Mouse
•The main •This area in the •ROM is a •It is a non- •The most •The keyboard •A mouse is an
en
component of computer memory chip, volatile commonly is one of the input device
a computer stores all the which contains memory used output most common that controls a
that executes instructions in-built because it device is the input devices. pointer, which
all processes
and
instructions
(processes) and
information of
system. It is a
programs
by C
written into it
retains
information,
unless the
monitor. It is
used to display
a variety of
Keyboard
convert
numbers,
is displayed on
the monitor.
The mouse is
h
supplied by volatile manufacturers. information information letters, and used to click
ec
memory unit memory It is a non- itself is deleted other special and drag
volatile or overwritten. characters into objects on the
memory It can store digital signals, graphical
pt
understands select or
activate
options
Fo
U
and instructions
tre
A sequence of instructions is specified to a computer to solve a
en
problem
C
h
These sequence of instructions are written in a language, which can
ec
se
U
tre
en
C
h
ec
pt
rA
Fo
Fo
rA
pt
ec
h
C
en
tre
U
se
O
nl
y
y
nl
O
In order to boot a computer successfully, its Basic Input Output System (BIOS),
operating system and hardware components must work properly
se
U
Failure of any one of these three elements will likely result in a failed boot
sequence.
tre
BIOS is a microchip that stores instructions such as POST in a
en
predetermined memory address.
C
Once the POST determines that all components are functioning properly
and the processor has successfully been initialized, then the BIOS look for
h
an OS and its boot sequence in the MBR.
ec
The MBR shows the BIOS where to find the OS as well as the subsequent
pt
After OS initialization, the files are copied into memory by the BIOS and the
Fo
se
same time on a single machine
• A traditional application server may have just 5-10% utilization,
U
whereas virtualized servers can reach 50-80% utilization
Computing • By hosting more virtualized instances on fewer physical servers,
tre
you can lower costs for hardware acquisition, maintenance, energy,
and cooling system usage
en
• Grid computing is defined as an interconnected computer system
Grid where the machines utilize the same resources collectively for
C
solving a problem or reaching a common goal
• Grid computing usually consists of one main computer that
Computing distributes information and tasks to a group of network computers
h
to accomplish a common goal
ec
pt
Utility
rA
se
• A public can be accessed by anyone using the Internet
U
Public Cloud • The client manages their normal resources that operate
within the cloud and provide appropriate remuneration for
tre
the services used
en
• A private cloud is cloud technology which uses a private
data center to which only one organization has access
Private Cloud C
• The organization maintains its own data center and staff,
h
but IT resources within the cloud are available on-demand
ec
pt
clouds
Hybrid Cloud • Sometimes an application in a private cloud extends to use
resources present in a public cloud
Fo
y
nl
O
The different types of services provided in cloud computing
platform are:
se
Infrastructure as a service (IaaS) - In this model, computers and other resources are
U
provided to the users
Platform as a service (PaaS) - In this model, OS, program execution environment,
tre
database, and Web server are provided as a service
Software as a service (SaaS) - In this model, cloud providers install and operate the
en
application software in the cloud and the users access it
Storage as a service (STaaS) - In this model, large service providers rents out storage
infrastructures
C
Security as a service (SECaaS) - In this model, large service providers integrates into the
h
corporate infrastructure’s security services
ec
Data as a service (DaaS) - In this model, data is provided to the user as and when
required irrespective of geographic location or organization separation between the
pt
Test Environment as a service (TEaaS) - In this model, software and its data are hosted
to be accessed by users using a Web browser over the Internet
Desktop as a service (DaaS) - In this model, desktop is virtualized
Fo
se
Large six figure Symmetric Multiprocessing (SMP) servers for application
U
processing are not required
tre
Idle resources can be utilized much more efficiently by distributing jobs
to idle servers or idle desktops
en
C
A grid environment has modular structure and does not have single
points of failure
h
ec
pt
se
Large SMP are still used when applications that
U
require high memory do not take advantage of
MPI
tre
en
A fast connection in between the computer
resources is required C
h
ec
pt
se
The client is not required to buy all the hardware,
U
software and licenses, instead, the client depends on
tre
the utility computing company to provide these
en
services
C
h
ec
se
If a utility computing company has financial
U
difficulty or has frequent equipment problems,
tre
clients could get discontinued from the services
even after paying.
en
C
h
ec
files.
Fo
y
nl
O
The computer consists of different parts namely, CPU, Motherboard, RAM, hard
disk, main cabinet with all the peripheral devices connected to the motherboard,
se
and an OS.
U
A workstation can be defined as a type of computer that is mainly used for
technical and scientific applications, desktop publishing, and so on.
tre
Booting is the process of loading the operating system when the user switches ON
en
the computer system.
Cloud computing is an approach enabling convenient and on-demand access
C
through the Internet to resources such as networks, servers, storage, applications,
and services.
h
ec
Grid computing usually consists of one main computer that distributes information
and tasks to a group of network computers to accomplish a common goal.
pt
rate.