Programming Principles and Techniques - Session 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

y

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

List new technologies in computer


rA
Fo
y
nl
O
 A computer can be defined as a system that responds

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

 Main cabinet with all the peripheral devices connected to


pt

the motherboard
rA

 Operating System (OS)


Fo
y
nl
O
 Computers can be classified based on their size and

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

They come in different forms such as desktop


rA

computers, laptop computers, tablet PCs, Personal


Digital Assistants (PDAs), and so on
Fo
y
nl
O
 Laptop
DesktopComputers
Computers

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

Mainframe is a large computer that can support hundreds or


thousands of users simultaneously
rA
Fo
y
nl
O
 The different mandatory components of a computer

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

large amount which the interface as


of data system well as to
rA

understands select or
activate
options
Fo

Click on More Details button to understand More Details


different types of Monitors
y
nl
O
se
Software is a generic term for organized collections of computer data

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

be comprehended by a computer and they form a computer program


pt

The program controls the processing of the computer, which performs


rA

specifically as the program instructs


Fo
y
nl
O
 There are two types of software, namely:

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

program file that will initialize the OS.


rA

 After OS initialization, the files are copied into memory by the BIOS and the
Fo

OS takes over the control of the boot process.


y
nl
O
• Cloud computing evolved from a concept called virtualization
• Using virtualization, you can host multiple Operating Systems at the
Cloud

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

• In utility computing, the computing resources and infrastructure is


provided to the customer by the service provider

Computing • The customer is charged according to the service usage


Fo
y
nl
O
 Cloud computing is divided into three major cloud structures:

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

• Hybrid clouds are a combination of private and public


rA

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

provider and the consumer


rA

 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

 API as a service (APIaaS) - It enables the creation and hosting of APIs


y
nl
O
 Advantages of grid computing are:

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

Systems can be upgraded without scheduling downtime


rA
Fo

Jobs are executed in parallel speeding performance


y
nl
O
 Disadvantages of grid computing are:

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

Some applications are required to be fine-tuned to


rA

take full advantage of the new model


Fo
y
nl
O
 Advantages of utility computing are:

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

It gives companies the option to subscribe to a single


pt

service and use the same software suite for the


rA

entire client organization.


Fo
y
nl
O
 Disadvantages of utility computing are:

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

Utility computing systems are always targets for


hackers. A hacker can access services without
pt

paying and sneaking around and exploring client


rA

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

 Utility computing is a service-provisioning model. In this model, the service


rA

provider makes computing resources and infrastructure management available to


the customer as needed, and charges them for specific usage rather than a specific
Fo

rate.

You might also like