Professional Documents
Culture Documents
11/27/2022 Distributed_System_01 1
11/27/2022 Distributed_System_01 2
11/27/2022 Distributed_System_01 3
11/27/2022 Distributed_System_01 4
Exam Scheme
• Internal Assessment (40%)
• Theory: 40 Marks
• External Assessment(60%)
• Theory: 60 Marks(3 Hours)
11/27/2022 Distributed_System_01 5
Marks Distribution
Total Marks : 100
11/27/2022 Distributed_System_01 6 6
Final Examination Questions Format
11/27/2022 Distributed_System_01 7 7
Individual Evaluation
1. Attendance – Minimum: 80% (<NQ)
2. Class Performance
i. Assignment,
ii. Unit Test(Unit Wise),
iii. Presentation
iv. Viva
11/27/2022 Distributed_System_01 8
STRUCTURE
11/27/2022 Distributed_System_01 9
RESOURCES
•Lectures.
•Books (in lab).
•Books in LRC.
•Internet, you have internet access.
•Periodicals etc.
11/27/2022 Distributed_System_01 10
Reference Books
11/27/2022 Distributed_System_01 12
What is Operating System?
An operating system (OS) is system software that manages computer hardware and software
resources and provides common services for computer programs.
Example:
User
User 1 User 2 User 3
Software
System Software Application Software
Operating System
Windows Linux Mac
Hardware
CPU RAM I/O
Regular OS
An operating system (OS) is system software that manages computer hardware and software
resources and provides common services for computer programs.
Simple (No rules to follow).
#3170719 (DS) Unit 1 – Fundamentals of Distributed System
Prof. Umesh H. Thoriya 15
Evolution of Modern OS
First Generation OS
System:
Centralized OS
Characteristics:
Process Management
Memory Management
I/O Management
File Management
Goals:
Resource Management
Memory
T1 P1 F1
P2
F2
P3
T2 P4 D2 D3
D1
File Server
Client-1 Client-2
Request
Reply
Network
Systems processors
are differ in size and
functions
Communication
Network
I have my own
Memory,
Processor and LAN
other Hardware MAN
WAN
Physically
separate Independent
Networked Communicating
#3170719 (DS) Unit 1 – Fundamentals of Distributed System
Prof. Umesh H. Thoriya 24
Distributed Operating System
Definition by Coulouris, Dollimore, Kindberg and Blair
“A distributed system is defined as one in which components at networked computers
communicate and coordinate their actions only by passing messages.”
“A Distributed system is collection of independent computers which are connected through
network.”
This system looks to its users like an ordinary centralized operating system but runs on
multiple, independent central processing units (CPUs).
#3170719 (DS) Unit 1 – Fundamentals of Distributed System
Prof. Umesh H. Thoriya 25
Distributed Operating System
A great example of distributed system is the web page of TU University.
www.TU.edu.np
User Internet
Web Server
School of
Engineering
#3170719 (DS) Unit 1 – Fundamentals of Distributed System
Prof. Umesh H. Thoriya 26
Distributed Operating System
Want to process
500GB Data RAM: 4GB
Add more
Processors/Systems
Scenario-2:
DOS(Disk
Horizontal Scaling RAM: 4GB RAM: 4GB RAM: 4GB
Operating
System
Component shared by users all the time Components are not shared by all users
Software runs in a single process Software runs in concurrent processes on different processors
Performance is badly affected if certain part of It is more reliable or fault tolerant i.e.
the hardware starts malfunctioning. distributed operating system performs even if
certain part of the hardware starts
malfunctioning.
Remote resources are accessed by either Users access remote resources in the same
logging into the desired remote machine or manner as they access local resources.
transferring data from the remote machine to
user's own machines.
Reliability and availability - A few parts of the system can be down without disturbing
people using the other parts.
Speed: A distributed system may have more total computing power than a mainframe.
Inherent distribution: Some applications are inherently distributed. Ex. a supermarket chain,
Banking, Airline reservation.
× Load Transfer
Based on Hardware
Based on number
of instructions and
DataStream
Multiprocessor Multicomputer
(Shared Memory) (Private Memory)
P P P P
Shared Memory
A=10+10
A=A+10
A=20 Read
A=20A
P P P P
A=10
A=20
10
M M M M
A=10A
Read P P P P A=20A
Read
Read
A=20A
Each processors has its own local memory. The n processors shares physical address
space.
Communication can be done through Message Communication can be done through shared
passing. memory.
Manages heterogeneous multicomputer Manages multiprocessors & homogeneous
Distributed Systems. multicomputer.
Similar to “local access feel” as a non- Provides local services to remote clients via
distributed, standalone OS. remote logging
Data migration or computation migration Data transfer from remote OS to local OS via
modes (entire process or threads) FTP (File Transfer Protocols)
Distributed Operating System (DOS) Network Operating System (NOS)
Flynn’s
Classification
Instruction Pool +
Data Stream
A B
PU
Instruction Pool +
A B PU
+
Data Stream
C D +
PU
E F
PU
+ Instruction Pool *
A B A B
Data Stream
PU PU
+ Instruction Pool *
A B A +B *
PU PU
Data Stream
C D C D
PU PU
Security
Distributed Systems
Connectivity layer
Communication protocols for grid transactions Collective layer
spanning over multiple resources, plus security
protocols for authentication
Connectivity
Resource layer Resource layer
layer
Management of single resources—e.g., access
control Fabric layer
Collective layer
Handling access to multiple resources—resource
discovery, allocation,
Application layer
Applications operating in the virtual organization.
#3170719 (DS) Unit 1 – Fundamentals of Distributed System
Prof. Umesh H. Thoriya 64
Grid Middleware layer
collective, connectivity, and resource layers.
Provide access to and management of resources that are potentially dispersed across
multiple sites.
Shift toward a service-oriented architecture in which sites offer access to the various
layers through a collection of Web services
Led to the definition of an alternative architecture known as the Open Grid Services
Architecture (OGSA).
Consists of various layers and many components, making it rather complex.
A
X T11 A
T T1 H
B
Y T T12 B
T21 C
T2 K
C
D
D T22
Z F
A flat client transaction completes each of its
requests before going on to the next one. In a nested transaction, the top-level transaction can
open sub transactions, and each sub transaction can
Therefore, each transaction accesses servers’ open further sub transactions down to any depth of
objects sequentially nesting
#3170719 (DS) Unit 1 – Fundamentals of Distributed System
Prof. Umesh H. Thoriya 69
Nested Transactions
A nested transaction is made of a number of sub transactions.
Nested transaction
Subtransaction Subtransaction
Client Client
application application
Communication middleware
WWW is the huge collection of pages of information linked to each other around one globe.
Web page is the collection of text, images, video, audio, animation and hyperlink.
• the Hyper Text Markup Language (HTML), a language for specifying the contents and
layout of pages as they are displayed by web browsers;
• Uniform Resource Locators (URLs), also known as Uniform Resource Identifiers (URIs),
which identify documents and other resources stored as part of the Web;
• a client-server system architecture, with standard rules for interaction (the HyperText
Transfer Protocol – HTTP) by which browsers and other clients fetch documents and other
resources from web servers. The below figure shows some web servers, and browsers
making requests to them. It is an important feature that users may locate and manage their
own web servers anywhere on the Internet.
Figure shows three browsers issuing requests for resources managed by three web servers.
The topmost browser is issuing a query to a search engine.
The middle browser requires the default page of another web site.
The bottommost browser requires a web page that is specified in full, including a path name
relative to the server.