SlideShare a Scribd company logo
1 of 25
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

More Related Content

Similar to Chapter 3-Process in distributed system.ppt

Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systemsSHATHAN
 
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
 
Distributed computing bsics
Distributed computing bsicsDistributed computing bsics
Distributed computing bsicsDeepak John
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating SystemCSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating Systemghayour abbas
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.pptbalewayalew
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit INANDINI SHARMA
 
Distributed Processing
Distributed ProcessingDistributed Processing
Distributed ProcessingImtiaz Hussain
 
Distributed computing ).ppt him
Distributed computing ).ppt himDistributed computing ).ppt him
Distributed computing ).ppt himHimanshu Saini
 
Distributed system
Distributed systemDistributed system
Distributed systemchirag patil
 
- Introduction - Distributed - System -
- Introduction - Distributed - System  -- Introduction - Distributed - System  -
- Introduction - Distributed - System -ssuser7c150a
 
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...IJTET Journal
 
Cloud ready reference
Cloud ready referenceCloud ready reference
Cloud ready referenceHelly Patel
 
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...IJTET Journal
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introductionTamrat Amare
 
paradigms cloud.pptx
paradigms cloud.pptxparadigms cloud.pptx
paradigms cloud.pptxgunvinit931
 

Similar to Chapter 3-Process in distributed system.ppt (20)

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...
 
Distributed computing bsics
Distributed computing bsicsDistributed computing bsics
Distributed computing bsics
 
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)
 
- Introduction - Distributed - System -
- Introduction - Distributed - System  -- Introduction - Distributed - System  -
- Introduction - Distributed - System -
 
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
 
Cloud ready reference
Cloud ready referenceCloud ready reference
Cloud ready reference
 
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
A Secure Cloud Storage System with Data Forwarding using Proxy Re-encryption ...
 
Chapter16 new
Chapter16 newChapter16 new
Chapter16 new
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introduction
 
paradigms cloud.pptx
paradigms cloud.pptxparadigms cloud.pptx
paradigms cloud.pptx
 

More from AschalewAyele2

Chapter_Five Compueter secuityryhf S.pdf
Chapter_Five Compueter secuityryhf   S.pdfChapter_Five Compueter secuityryhf   S.pdf
Chapter_Five Compueter secuityryhf S.pdfAschalewAyele2
 
Chapter_three - Computer Security.pdf
Chapter_three -      Computer Security.pdfChapter_three -      Computer Security.pdf
Chapter_three - Computer Security.pdfAschalewAyele2
 
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.pptxAschalewAyele2
 
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.pptxAschalewAyele2
 
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.pptxAschalewAyele2
 
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.pptxAschalewAyele2
 
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 .pdfAschalewAyele2
 
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.pptxAschalewAyele2
 
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.pptAschalewAyele2
 

More from 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
 

Recently uploaded

Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencySheetal Arora
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCEPRINCE C P
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxUmerFayaz5
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)Areesha Ahmad
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PPRINCE C P
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhousejana861314
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPirithiRaju
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 

Recently uploaded (20)

Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhouse
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 

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