Distributed System Notes, Cheat Sheet of Distributed Database Management Systems

Title: Distributed Systems – Unit 2 (Mutual Exclusion Algorithms) File Type: PDF (Handwritten Lecture Notes) Length: 25 Pages Subject Area: Distributed Systems / Computer Networks Course Level: Undergraduate / Diploma / Engineering Discipline: Computer Science / Information Technology / Software Engineering Language: English

Typology: Cheat Sheet

2025/2026

Uploaded on 02/19/2026

mukut-kumar
mukut-kumar 🇮🇳

3 documents

1 / 25

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
stibuted
Mutual
buted
uf
daks
hioces
y
at
a
Mutual
snased
.
And
Cotkectne
Syctem
whonere
doictosy
qnd
sevlal
eads
aLtain
ltats
Exehtton
Mutual
enclut'am
feuently
thu
lak
UNTT-
2
time
omflorented
Ailes
acceçied
Le
ne
cessay
Concuelent
Mana
nageneat
a
don
.
th
tatu
thvoled .
the
muteal
becase
both
sbed
thal
a
acl b shavd
ohuye
siadiy
mose
Qn
alkes
.
memoy
ahaud
ufdat1
Sycteme
Va.
distlbuk
belause.
Compl
becae
seb
lem
Can
un
fedta
sle
Qnd
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Distributed System Notes and more Cheat Sheet Distributed Database Management Systems in PDF only on Docsity!

stibuted Mutual

buted

uf daks

hioces y at a

Mutual

snased

. And

Cotkectne

Syctem whonere

doictosy

qnd

sevlal

eads

aLtain

ltats

Exehtton

Mutual enclut'am feuently

thu lak

UNTT- 2

time

omflorented

Ailes

acceçied

Le

necessay

Concuelent

Mananageneat

a

don
. th tatu
thvoled.

the muteal

becase

both sbed

thal

a

acl b shavd

ohuye

siadiy

mose

Qn

alkes

.

memoy

ahaud

ufdat

Sycteme Va. distlbuk

belause.

Compl becae

seb lem Can

un fedta sle

Qnd

THhe clau'fcatin

Sevelal

MOunt

other

hcse

hound

These

Non toRen baled

Can

A

entes

the

These

Caes

to fe

tho

goithime

algowthnd

Token bosed agothm

out

nfmatem mahtalhed

allosed

shand

and

erecutiM

Can

the

ocal

Mutual Exclut'en ALgoihma,

wtcal

the

be

erchanges among

aston

Communi catiy folo

Valabe

Conttnues

tho

the

CS

Aiffea

Ae areh f th

eah i

nto

hae

ahoy

and

based becante

becomes tiue

token.

lbuted

tes

buted

uceeie

unugue koken^

(tRt vtLe

th bken

Sevelal

amount

othe

" hese

Can

A

Non toRen baied

the

Töken bosed
ente

These

Cales

to

the

agoukm

nfrraton maintained

alguthin

bhaed

allosed.

and

qnd

wecutoM

the

Aocal

Mutual Erelutim Algovj

atiere mutual eeelan

en the

tcal

Cqn be

asuton

Vavabil

Seton Cs) hon

Contnues

tho

the

CS

Aeareh fo th

becomes

han

hald

based becanse a sit

aueta

At

tuo dawa

ueeeyive

thu bken

a ute

(yoim'naes

Syakem model

At

A

)

at

Requtumenti

tu

intant

qn

Pan

nues

Can be

ca) FAedon (^) fhan dad (^) locks

ti

dtemind

failute , t

thue

faom stovationi

dlctates

Cs

) Ereuting cs

Mutual

Can

have sevtal

Alqueata

the

fautt- hluant

that

made

hore

thu tak

Btg should hat

here

ie

does not entt,

thet Mqueete mut be

ereeteol

timl

o (^) tha

t

Con.

Caton

2

Undl

than

anel

load cen d'

tion vz. Le ue

load

Unde

"hus

for

A

best and

mtul

that
vale

load Condits

loue

ne

a

ib thu

aftus

ltats

Cenn u'de

the

sfnse ime

ereetn
Poe nutu al

Load pefonanle

Wot

load

the putmane

nutual

wth

load

baing

but

fufmane

Aeldom

mos

Case

eRclton algotn datends

a

Conditiomi , the

fot inutal

Condu'ont

ereCuted

Case ferfrmanl

netla

and

mutua er celon

pevking

netuc

t

t

kound bip

avg cs^

erelton tme)

th

theu

th

ercuon limutano.

Aequat

th

Atati

Con dition

erelueion adgo.

and biglh oade

have best qnd et caseg

load

leldom moe

attans (^) thu but (^) posihla

best

best and

a

a &it.

a slt immid

erecute

value

Qnd

Symeboneaton /(T+£J

T

then

shoud

gant

enslon

th

nent

enect

qnd theu

the

Contal

alt

4

a

s}ti

chold

ft

selease

3

Bottlunet

stg

at

Demewte

meut-
COntol

2

msages

becs

ekecutom

acles.

them

Conthol queues

up the qnd

fia.t

the

Centol

Aequt

th Cs,

a

lends

a

ReQueST

cs

the

CS

erecutoy

Callid

thu

othe

n

Atalbued

mutua

el

A

simple

Solton

to

dctsbuted

Melual

A

a

Gyeutng th^

ctical Aeetom

hold

LI: S; ha

than (ts;,)

La! si'A

ste

enteu
iv) when

Ate

Aqu et

thu

a

ALCind

when

queul

th

Suppose

fAom

t

RELEASE

quenl

flom the^ to^

o it^

quest ueue

Lamport' go achieves

Conulent

a

ot

all

tin Atanfe.

comeutn o

Condikn

conmey

when

medaje

thi

t

othe

eneut

t

s'

enasing

thu

a

quet

mtual

S qnd

LI and

hoith

tes

Qnd

t

Atgueet

Afuut.

sufjuse

Due

ohen

Coynnd Catm

Ayuat,

  • A

mutal

Fon eg

at AOme

(N-)

hare

Condi on

CS UnvoCatbn.

as

thei

and

chanels

An optm'zatn

instant

S;

Conthadieton

Auzuat

Pestomance - Lambot's

CS

LI qnd

that s's OM

Conditom

has

to

mwt be

Syrehioniz ahon delay

S quat, 'u fesent in

dmalle

queul

Li

RaUEsT (N-) REPLY

the

reutin

lea

hunt

tence, Lambost's

thu

shen

Lampet's algoutnm

betaen

t, boty Ci

hold ct

and

at

that at

them

thain tu

the

netant t

a males timutamp

(N) RELEAS£

Can be otimized

3CH-1) and al-)

REPLY meg

'n

a

tine

ktamfed

yueet

REQUEST

a

Mesage

b

all

th

ty entel

Fhe

Algasilhn

thu

cati

cal

uton

to

cs,

t

ends

aluo

them

oth

nesel

Lt

s an

REPLY

mesnge

oth

RELEASeohtinzaton

Lamfot's

algotam

Fhe

Ricart

Ayiasala

that

dete

Amales

Can Con

clud

that

kquat

thet

wth

time

dtam

doe

nat

have

ay

becae

hen

ajt

to

scives

Case

nud

ntes

not

send

RePy

than

thu

hellge

tirttan

ReQUEST meage

.M

Ceatatn sihuat

sufoe

has

ereution

Thein

timeshms

n

this

abgovsm

REPLY

and

entes

eeives

the

laet

all th

afond

when

the

withthunent

nuoed

Jend REAY

pioty

Cie

amae

ine

atamp.

thal the

A

REPLY

msags bBecked

ony

th

quati

4

shen
Lib

th

cS,
t
Jends

tu

citi

cal

eution

ntbge

flom

St Si

entes

thcs

all

th

sites

Cs

arftyt

had

eeid

REPLy

uat

Ereutg

th

caiti'al

detion

binestamp

timeatamp

bnalle

Than

squating

and

neithel

no

th

Si
t
sed

a

REPLY

melage

S

S;

ceives

RE

aVET

o

the

0the

Perfos mance -

e

( N-) REQUEST

sala

Symehsonzatn dlay

has

ofbinieatoy

mceived

authoizatin

qnd

a

Beetian

and

entes

n th

REPUY

mesags (^) fAom all th

Ricart Agsqala

aC-) neages pes cs

obsel

REPLY

cs and

t

SL eute th

imtiut

CA-) REPLY Mesagei

net

Roucaol and

lends a

that

algohn 'u T.

eneutaM

mesage

Calvalko pojased

R'cat-Aa

bage fson^

a erta G.

R

thiy mesage emans

amportment to th

medietes

) Second

t a

  • A At

Aends

numhes

RLPLY

Maekaun' algo klhn

cdange

consequontly

confue

.

Maekasa'

a

qnd

Can

mesage

Aceved

Sj.

Can

REPLY medeg

s)

has

Mvd

a

REPLY

times

a

ony send

betlen

send

Algosithwm

Out

RELEASE

S) Cah

tes

that

tw

fum ynandaty

S

sends a^

R&PUY
ente

hal

Ricat

a

othe

ayo

in

ways

thu sty:

ban

chosen dyeh that

a sti that

REPLY mesage

ASE Mesage^

fot the pseuows

3

mesages

lends

shen

faom

Menes

hent

stai

sufose

Aent

th

acesses

Phoof- he

from all

coMetns

thu

thu cti cal

th

ite

erecutlon

RELEASE () mesage

Macfaua' ago

waiting

REaUeST f^

dete

consdutabin(74)

th

S

REPLY mesags

Send

that

utes

nt

ony

afku

eing

RePLy

all

to

then

Conha diton

qnd S, a

then

aLhere mutual eneleton

thu

both

tes n Ru

and dulte hat

Contadi'chon

eneut

At

Sh mut^

hare

S and Comlur

les fosante

Not hat

Synchionzation

thu

Assume theu

iavoke muta

hos

The

pabden o^

dad doaes

And

in the

at

Spi

Wat t

th

ereta

AEPLY

do

dadlocba

othe

theu's

qnd

ercluelon

poi'se hat du

rat send

has ben

tes

sites S,^

and Sp

Auquet seb

tine atam

sgust

ts

a

Lopad

becanse

Si, S ant

Sjk:

eeto

SA

moa

and sguats au

.

Simultaneoul

mesage

Cforuing

dadlok

Si

Ma