SlideShare ist ein Scribd-Unternehmen logo
Processes
3/30/2024 1
Outlines
 Introduction to Threads
 Threads in Distributed Systems
 Clients
 Servers
 Code Migration

3/30/2024 2
 Process is a program that is currently being
executed on one of the operating system's
virtual processors.
 The management and scheduling of processes
are perhaps the most important issues to deal
with.
 Virtualization allows to run concurrently with
other applications, but highly independent of
the underlying hardware and platforms leads
to a high degree of portability.
3/30/2024 3
Definition
 Moreover, virtualization helps in isolating
failures caused by errors or security problems.
 Process migration or code migration, can help
in achieving scalability, but can also help to
dynamically configure clients and servers.
3/30/2024 4
Definition
A thread refers to a sequence of instructions
that can be executed independently within a
process.
It is the smallest unit of execution within a
program and represents a single flow of
control.
Thread is building block in distributed
systems, lightweight process that can be
managed by scheduler.
To execute a program, an operating system
creates a number of virtual processors, each
one for running a different program.
3/30/2024 5
To keep track of these virtual processors, OS has a
process table, containing entries to store CPU register
values, memory maps, open files, accounting
information. privileges, etc.
Multiple processes may be concurrently sharing
the same CPU and other hardware resources are made
transparent.
When a process is created, the operating system must
create a complete independent address space.
Like a process, a thread executes its own piece of code,
independently from other threads.
But no attempt is made to achieve a high degree of
concurrency transparency if this would result in
performance degradation.
3/30/2024 6
 A thread system generally maintains only the
minimum information to allow a CPU to be shared by
several threads it refers to multithreading.
 Multithreading leads to high performance.
 Multithreading is that it becomes possible to exploit
parallelism when executing the program on a
multiprocessor system.
 A collection of cooperating programs, each to be
executed by a separate process. Mean that a process
contain many thread.
3/30/2024 7
◦ Process Thread
Program is in execution Segmentation of process
Not light weight Light weight
Isolated/no shared memory Share memory
Not share data Share data each other
Long time to communication Short time to communication
Processes between threads
Independent each other Dependant each other
3/30/2024 8
 Threads can provide a convenient means of allowing
blocking system calls without blocking the entire
process in which the thread is running.
 This property makes threads particularly attractive to
use in distributed systems as it makes it much easier
to express communication in the form of maintaining
multiple logical connections at the same time.
 It is good to illustrate this point by taking a closer
look at multithreaded clients and servers,
respectively.
3/30/2024 9
 To establish a high degree of distribution
transparency, distributed systems that operate in WAN
may need to conceal long inter-process message
propagation times.
 To hide communication latencies as much as possible,
some browsers start displaying data while it is still
coming in.
 Web browser is doing a number of tasks
simultaneously.
 As soon as the main HTML file has been fetched,
separate threads can be activated to take care of
fetching the other parts.
 Each thread sets up a separate connection to the
server and pulls in the data.
3/30/2024 10
 The main use of multithreading in distributed
systems found at the server side.
 Also makes it much easier to develop servers that
exploit parallelism to attain high performance,
even on uniprocessor systems.
 Multithreading for parallelism is even more useful.
 The file server normally waits for an incoming
request for a file operation, subsequently carries
out the request, and then sends back the reply.
3/30/2024 11
 Here one thread, the dispatcher, reads incoming
requests for a file operation.
 The requests are sent by clients to a well-known end
point for this server.
 After examining the request, the server chooses an
idle (i.e., blocked) worker thread and hands it the
request.
 The worker proceeds by performing a blocking read
on the local file system, which may cause the thread
to be suspended until the data are fetched from disk.
 If the thread is suspended, another thread is selected
to be executed.
3/30/2024 12
A multithreaded server organized in a
dispatcher/worker mode.
3/30/2024 13
 Three ways to construct a server.
3/30/2024 14
 By rapidly switching between threads and processes,
the illusion of parallelism is created(executed
simultaneously ).
 It is impossible in single processor.
 This separation between having a single CPU and being
able to pretend there can be extended to other resources
as well, leading to what is known as resource
virtualization.
 The Role of Virtualization in Distributed Systems is
virtualization deals with extending or replacing an
existing interface so as to mimic the behaviour of
another system.
3/30/2024 15
(a) General organization between a program, interface, and system.
(b) General organization of virtualizing system A on top of system B.
3/30/2024 16
 Computer systems generally offer four different
types of interfaces, at four different levels
 The essence of virtualization is to mimic the
behaviour of these interfaces
3/30/2024 17
 Virtualization can take place in two different ways.
(a) A process virtual machine with multiple instances
of (application, runtime) combinations.
(b) A virtual machine monitor with multiple instances
of (applications, operating system) combinations.
3/30/2024 18
 A major task of client machines is to provide
the means for users to interact with remote
servers.
 There are roughly two ways in which this
interaction can be supported.
 First, for each remote service, the client
machine will have a separate counterpart that
can contact the service over the network.
 A second solution is to provide direct access
to remote services by only offering a
convenient user interface.
3/30/2024 19
 In many cases, parts of the processing and data level
in a client-server application are executed on the
client side as well.
 A special class is formed by embedded client
software, such as for ATMs, cash registers, barcode
readers, TV set-top boxes, etc.
 In these cases, the user interface is a relatively small
part of the client software, in contrast to the local
processing and communication facilities.
 Client software comprises components for achieving
distribution transparency.
Access transparency
Location, migration
Relocation transparency
Replication transparency
3/30/2024 20
General Design Issues
 A server is a process implementing a specific service
on behalf of a collection of clients.
 In essence, each server is organized in the same way:
it waits for an incoming request from a client and
subsequently ensures that the request is taken care
of, after which it waits for the next incoming request.
 A multithreaded server is an example of a concurrent
server.
 The place where clients contact a server in all cases,
clients send requests to an end point, also called a
port, at the machine where the server is running.
3/30/2024 21
 A server cluster is nothing else but a collection of
machines connected through a network, where each
machine runs one or more servers.
 Connected through a LAN, often offering high
bandwidth and low latency.
 Logically organized into three tiers.
 The general organization of a three-tiered server
cluster.
3/30/2024 22
 Situations in which passing programs,
sometimes even while they are being
executed, simplifies the design of a
distributed system.
 Moving a running process to a different
machine is a costly and intricate/complex
task.
 There had better be a good reason for
doing so that reason has always been
performance.
3/30/2024 23
Questions?
3/30/2024 24
Quiz
1. Discus at least two goal of distrbuted
system.
2. Define distributed pervasive system and
write at least three example.
3/30/2024 25

Weitere ähnliche Inhalte

Was ist angesagt?

Cgmm presentation on distributed multimedia systems
Cgmm presentation on distributed multimedia systemsCgmm presentation on distributed multimedia systems
Cgmm presentation on distributed multimedia systems
Mansi Verma
 
Distributed objects
Distributed objectsDistributed objects
Distributed objects
Sharafat Husen
 
Information and data security cryptography and network security
Information and data security cryptography and network securityInformation and data security cryptography and network security
Information and data security cryptography and network security
Mazin Alwaaly
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
BOSS Webtech
 
Operating System Operations ppt.pptx
Operating System Operations ppt.pptxOperating System Operations ppt.pptx
Operating System Operations ppt.pptx
MSivani
 
Nfs
NfsNfs
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
mridul mishra
 
CLOUD STORAGE.pptx
CLOUD STORAGE.pptxCLOUD STORAGE.pptx
CLOUD STORAGE.pptx
RuturajJadhav25
 
Agreement protocol
Agreement protocolAgreement protocol
Agreement protocol
Saif Ali Khan
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
AbDul ThaYyal
 
OS file systems
OS file systemsOS file systems
OS file systems
anand hd
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
Ashish Kumar
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared Memory
SHIKHA GAUTAM
 
Distributed shared memory ch 5
Distributed shared memory ch 5Distributed shared memory ch 5
Distributed shared memory ch 5
Alagappa Government Arts College, Karaikudi
 
Data security in cloud computing
Data security in cloud computingData security in cloud computing
Data security in cloud computing
Prince Chandu
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
Sunita Sahu
 
Eucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaEucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebula
Amar Myana
 
Data Confidentiality in Cloud Computing
Data Confidentiality in Cloud ComputingData Confidentiality in Cloud Computing
Data Confidentiality in Cloud Computing
Ritesh Dwivedi
 
Message passing ( in computer science)
Message   passing  ( in   computer  science)Message   passing  ( in   computer  science)
Message passing ( in computer science)
Computer_ at_home
 
multiprocessors and multicomputers
 multiprocessors and multicomputers multiprocessors and multicomputers
multiprocessors and multicomputers
Pankaj Kumar Jain
 

Was ist angesagt? (20)

Cgmm presentation on distributed multimedia systems
Cgmm presentation on distributed multimedia systemsCgmm presentation on distributed multimedia systems
Cgmm presentation on distributed multimedia systems
 
Distributed objects
Distributed objectsDistributed objects
Distributed objects
 
Information and data security cryptography and network security
Information and data security cryptography and network securityInformation and data security cryptography and network security
Information and data security cryptography and network security
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
Operating System Operations ppt.pptx
Operating System Operations ppt.pptxOperating System Operations ppt.pptx
Operating System Operations ppt.pptx
 
Nfs
NfsNfs
Nfs
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
 
CLOUD STORAGE.pptx
CLOUD STORAGE.pptxCLOUD STORAGE.pptx
CLOUD STORAGE.pptx
 
Agreement protocol
Agreement protocolAgreement protocol
Agreement protocol
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
OS file systems
OS file systemsOS file systems
OS file systems
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared Memory
 
Distributed shared memory ch 5
Distributed shared memory ch 5Distributed shared memory ch 5
Distributed shared memory ch 5
 
Data security in cloud computing
Data security in cloud computingData security in cloud computing
Data security in cloud computing
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
 
Eucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaEucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebula
 
Data Confidentiality in Cloud Computing
Data Confidentiality in Cloud ComputingData Confidentiality in Cloud Computing
Data Confidentiality in Cloud Computing
 
Message passing ( in computer science)
Message   passing  ( in   computer  science)Message   passing  ( in   computer  science)
Message passing ( in computer science)
 
multiprocessors and multicomputers
 multiprocessors and multicomputers multiprocessors and multicomputers
multiprocessors and multicomputers
 

Ähnlich wie Chapter 3-Process in distributed system.ppt

Chapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.pptChapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.ppt
AschalewAyele2
 
unit 4-1.pptx
unit 4-1.pptxunit 4-1.pptx
unit 4-1.pptx
prakashvs7
 
distributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptxdistributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptx
lencho3d
 
SOFTWARE COMPUTING
SOFTWARE COMPUTINGSOFTWARE COMPUTING
SOFTWARE COMPUTING
DrThenmozhiKarunanit
 
Chapter 3-Processes2.pptx
Chapter 3-Processes2.pptxChapter 3-Processes2.pptx
Chapter 3-Processes2.pptx
MeymunaMohammed1
 
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.pptcharacteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
RamkumardevendiranDe
 
Chapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.pptChapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.ppt
AschalewAyele2
 
Chapter One.ppt
Chapter One.pptChapter One.ppt
Chapter One.ppt
abdigeremew
 
Chapter 3-Processes.ppt
Chapter 3-Processes.pptChapter 3-Processes.ppt
Chapter 3-Processes.ppt
sirajmohammed35
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systems
SHATHAN
 
Live migration using checkpoint and restore in userspace (CRIU): Usage analys...
Live migration using checkpoint and restore in userspace (CRIU): Usage analys...Live migration using checkpoint and restore in userspace (CRIU): Usage analys...
Live migration using checkpoint and restore in userspace (CRIU): Usage analys...
journalBEEI
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating SystemCSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating System
ghayour abbas
 
Distributed Systems.pptx
Distributed Systems.pptxDistributed Systems.pptx
Distributed Systems.pptx
salutiontechnology
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
balewayalew
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit I
NANDINI SHARMA
 
lect 1TO 5.pptx
lect 1TO 5.pptxlect 1TO 5.pptx
lect 1TO 5.pptx
SumitKumar918321
 
Distributed Processing
Distributed ProcessingDistributed Processing
Distributed Processing
Imtiaz Hussain
 
Distributed computing ).ppt him
Distributed computing ).ppt himDistributed computing ).ppt him
Distributed computing ).ppt him
Himanshu Saini
 
Distributed system
Distributed systemDistributed system
Distributed system
chirag patil
 
Distributed architecture (SAD)
Distributed architecture (SAD)Distributed architecture (SAD)
Distributed architecture (SAD)
Khubaib Ahmad Kunjahi
 

Ähnlich wie Chapter 3-Process in distributed system.ppt (20)

Chapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.pptChapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.ppt
 
unit 4-1.pptx
unit 4-1.pptxunit 4-1.pptx
unit 4-1.pptx
 
distributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptxdistributed-systemsfghjjjijoijioj-chap3.pptx
distributed-systemsfghjjjijoijioj-chap3.pptx
 
SOFTWARE COMPUTING
SOFTWARE COMPUTINGSOFTWARE COMPUTING
SOFTWARE COMPUTING
 
Chapter 3-Processes2.pptx
Chapter 3-Processes2.pptxChapter 3-Processes2.pptx
Chapter 3-Processes2.pptx
 
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.pptcharacteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
 
Chapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.pptChapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.ppt
 
Chapter One.ppt
Chapter One.pptChapter One.ppt
Chapter One.ppt
 
Chapter 3-Processes.ppt
Chapter 3-Processes.pptChapter 3-Processes.ppt
Chapter 3-Processes.ppt
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systems
 
Live migration using checkpoint and restore in userspace (CRIU): Usage analys...
Live migration using checkpoint and restore in userspace (CRIU): Usage analys...Live migration using checkpoint and restore in userspace (CRIU): Usage analys...
Live migration using checkpoint and restore in userspace (CRIU): Usage analys...
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating SystemCSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating System
 
Distributed Systems.pptx
Distributed Systems.pptxDistributed Systems.pptx
Distributed Systems.pptx
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit I
 
lect 1TO 5.pptx
lect 1TO 5.pptxlect 1TO 5.pptx
lect 1TO 5.pptx
 
Distributed Processing
Distributed ProcessingDistributed Processing
Distributed Processing
 
Distributed computing ).ppt him
Distributed computing ).ppt himDistributed computing ).ppt him
Distributed computing ).ppt him
 
Distributed system
Distributed systemDistributed system
Distributed system
 
Distributed architecture (SAD)
Distributed architecture (SAD)Distributed architecture (SAD)
Distributed architecture (SAD)
 

Mehr von AschalewAyele2

Chapter_Five Compueter secuityryhf S.pdf
Chapter_Five Compueter secuityryhf   S.pdfChapter_Five Compueter secuityryhf   S.pdf
Chapter_Five Compueter secuityryhf S.pdf
AschalewAyele2
 
Chapter_three - Computer Security.pdf
Chapter_three -      Computer Security.pdfChapter_three -      Computer Security.pdf
Chapter_three - Computer Security.pdf
AschalewAyele2
 
Chapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptxChapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptx
AschalewAyele2
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
AschalewAyele2
 
chapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptxchapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptx
AschalewAyele2
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
AschalewAyele2
 
Chapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdfChapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdf
AschalewAyele2
 
Chapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptxChapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptx
AschalewAyele2
 
chapter 1- introduction to distributed system.ppt
chapter 1- introduction to distributed system.pptchapter 1- introduction to distributed system.ppt
chapter 1- introduction to distributed system.ppt
AschalewAyele2
 

Mehr von AschalewAyele2 (9)

Chapter_Five Compueter secuityryhf S.pdf
Chapter_Five Compueter secuityryhf   S.pdfChapter_Five Compueter secuityryhf   S.pdf
Chapter_Five Compueter secuityryhf S.pdf
 
Chapter_three - Computer Security.pdf
Chapter_three -      Computer Security.pdfChapter_three -      Computer Security.pdf
Chapter_three - Computer Security.pdf
 
Chapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptxChapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptx
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 
chapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptxchapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptx
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 
Chapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdfChapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdf
 
Chapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptxChapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptx
 
chapter 1- introduction to distributed system.ppt
chapter 1- introduction to distributed system.pptchapter 1- introduction to distributed system.ppt
chapter 1- introduction to distributed system.ppt
 

Kürzlich hochgeladen

THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
Abdul Wali Khan University Mardan,kP,Pakistan
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
LengamoLAppostilic
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
Sérgio Sacani
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
Leonel Morgado
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
hozt8xgk
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
Vandana Devesh Sharma
 
Katherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdfKatherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdf
Texas Alliance of Groundwater Districts
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
Leonel Morgado
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
RDhivya6
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
Anagha Prasad
 
11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf
PirithiRaju
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
Areesha Ahmad
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
Scintica Instrumentation
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
Sciences of Europe
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
PirithiRaju
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
Sharon Liu
 

Kürzlich hochgeladen (20)

THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
 
Katherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdfKatherine Romanak - Geologic CO2 Storage.pdf
Katherine Romanak - Geologic CO2 Storage.pdf
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
 
11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
 

Chapter 3-Process in distributed system.ppt

  • 2. Outlines  Introduction to Threads  Threads in Distributed Systems  Clients  Servers  Code Migration  3/30/2024 2
  • 3.  Process is a program that is currently being executed on one of the operating system's virtual processors.  The management and scheduling of processes are perhaps the most important issues to deal with.  Virtualization allows to run concurrently with other applications, but highly independent of the underlying hardware and platforms leads to a high degree of portability. 3/30/2024 3 Definition
  • 4.  Moreover, virtualization helps in isolating failures caused by errors or security problems.  Process migration or code migration, can help in achieving scalability, but can also help to dynamically configure clients and servers. 3/30/2024 4 Definition
  • 5. A thread refers to a sequence of instructions that can be executed independently within a process. It is the smallest unit of execution within a program and represents a single flow of control. Thread is building block in distributed systems, lightweight process that can be managed by scheduler. To execute a program, an operating system creates a number of virtual processors, each one for running a different program. 3/30/2024 5
  • 6. To keep track of these virtual processors, OS has a process table, containing entries to store CPU register values, memory maps, open files, accounting information. privileges, etc. Multiple processes may be concurrently sharing the same CPU and other hardware resources are made transparent. When a process is created, the operating system must create a complete independent address space. Like a process, a thread executes its own piece of code, independently from other threads. But no attempt is made to achieve a high degree of concurrency transparency if this would result in performance degradation. 3/30/2024 6
  • 7.  A thread system generally maintains only the minimum information to allow a CPU to be shared by several threads it refers to multithreading.  Multithreading leads to high performance.  Multithreading is that it becomes possible to exploit parallelism when executing the program on a multiprocessor system.  A collection of cooperating programs, each to be executed by a separate process. Mean that a process contain many thread. 3/30/2024 7
  • 8. ◦ Process Thread Program is in execution Segmentation of process Not light weight Light weight Isolated/no shared memory Share memory Not share data Share data each other Long time to communication Short time to communication Processes between threads Independent each other Dependant each other 3/30/2024 8
  • 9.  Threads can provide a convenient means of allowing blocking system calls without blocking the entire process in which the thread is running.  This property makes threads particularly attractive to use in distributed systems as it makes it much easier to express communication in the form of maintaining multiple logical connections at the same time.  It is good to illustrate this point by taking a closer look at multithreaded clients and servers, respectively. 3/30/2024 9
  • 10.  To establish a high degree of distribution transparency, distributed systems that operate in WAN may need to conceal long inter-process message propagation times.  To hide communication latencies as much as possible, some browsers start displaying data while it is still coming in.  Web browser is doing a number of tasks simultaneously.  As soon as the main HTML file has been fetched, separate threads can be activated to take care of fetching the other parts.  Each thread sets up a separate connection to the server and pulls in the data. 3/30/2024 10
  • 11.  The main use of multithreading in distributed systems found at the server side.  Also makes it much easier to develop servers that exploit parallelism to attain high performance, even on uniprocessor systems.  Multithreading for parallelism is even more useful.  The file server normally waits for an incoming request for a file operation, subsequently carries out the request, and then sends back the reply. 3/30/2024 11
  • 12.  Here one thread, the dispatcher, reads incoming requests for a file operation.  The requests are sent by clients to a well-known end point for this server.  After examining the request, the server chooses an idle (i.e., blocked) worker thread and hands it the request.  The worker proceeds by performing a blocking read on the local file system, which may cause the thread to be suspended until the data are fetched from disk.  If the thread is suspended, another thread is selected to be executed. 3/30/2024 12
  • 13. A multithreaded server organized in a dispatcher/worker mode. 3/30/2024 13
  • 14.  Three ways to construct a server. 3/30/2024 14
  • 15.  By rapidly switching between threads and processes, the illusion of parallelism is created(executed simultaneously ).  It is impossible in single processor.  This separation between having a single CPU and being able to pretend there can be extended to other resources as well, leading to what is known as resource virtualization.  The Role of Virtualization in Distributed Systems is virtualization deals with extending or replacing an existing interface so as to mimic the behaviour of another system. 3/30/2024 15
  • 16. (a) General organization between a program, interface, and system. (b) General organization of virtualizing system A on top of system B. 3/30/2024 16
  • 17.  Computer systems generally offer four different types of interfaces, at four different levels  The essence of virtualization is to mimic the behaviour of these interfaces 3/30/2024 17
  • 18.  Virtualization can take place in two different ways. (a) A process virtual machine with multiple instances of (application, runtime) combinations. (b) A virtual machine monitor with multiple instances of (applications, operating system) combinations. 3/30/2024 18
  • 19.  A major task of client machines is to provide the means for users to interact with remote servers.  There are roughly two ways in which this interaction can be supported.  First, for each remote service, the client machine will have a separate counterpart that can contact the service over the network.  A second solution is to provide direct access to remote services by only offering a convenient user interface. 3/30/2024 19
  • 20.  In many cases, parts of the processing and data level in a client-server application are executed on the client side as well.  A special class is formed by embedded client software, such as for ATMs, cash registers, barcode readers, TV set-top boxes, etc.  In these cases, the user interface is a relatively small part of the client software, in contrast to the local processing and communication facilities.  Client software comprises components for achieving distribution transparency. Access transparency Location, migration Relocation transparency Replication transparency 3/30/2024 20
  • 21. General Design Issues  A server is a process implementing a specific service on behalf of a collection of clients.  In essence, each server is organized in the same way: it waits for an incoming request from a client and subsequently ensures that the request is taken care of, after which it waits for the next incoming request.  A multithreaded server is an example of a concurrent server.  The place where clients contact a server in all cases, clients send requests to an end point, also called a port, at the machine where the server is running. 3/30/2024 21
  • 22.  A server cluster is nothing else but a collection of machines connected through a network, where each machine runs one or more servers.  Connected through a LAN, often offering high bandwidth and low latency.  Logically organized into three tiers.  The general organization of a three-tiered server cluster. 3/30/2024 22
  • 23.  Situations in which passing programs, sometimes even while they are being executed, simplifies the design of a distributed system.  Moving a running process to a different machine is a costly and intricate/complex task.  There had better be a good reason for doing so that reason has always been performance. 3/30/2024 23
  • 25. Quiz 1. Discus at least two goal of distrbuted system. 2. Define distributed pervasive system and write at least three example. 3/30/2024 25