Chapter - 3
Chapter - 3
Institute of Technology
Faculty of Computing & Software Engineering
Intro to Distributed
Processes in DS
2
4
Introduction
Process & Thread are two basic units of program execution
Process components: Code Data
Process Status
program (code) to be executed Resource
Multithreading
13
Important Implications
Two Important Implications:
1. Threaded applications often run faster than non-threaded
applications (as context-switches between kernel and user-
space are avoided)
23
Servers Designing Issue
Server - a process implementing a specific service on behalf of a
collection of clients
servers are organized to do one of two things:
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
… wait … service … wait … service … wait …
26
Code Migration
Code Migration is when programs are moved from one
machine to another, often moving parts of its execution
environment along with it
often used for load distribution, reducing network bandwidth,
dynamic customization, and mobile agents.