O perating s ystems t hree e asy p ieces



Download 3,96 Mb.
Pdf ko'rish
bet374/384
Sana01.01.2022
Hajmi3,96 Mb.
#286329
1   ...   370   371   372   373   374   375   376   377   ...   384
Bog'liq
Operating system three easy pease

Client (C

1

)



Server

fd = open(“/home/remzi/notes.txt”, ...);

Send Fetch (home FID, “remzi”)

Receive Fetch request

look for remzi in home dir

establish callback(C

1

) on remzi



return remzi’s content and FID

Receive Fetch reply

write remzi to local disk cache

record callback status of remzi

Send Fetch (remzi FID, “notes.txt”)

Receive Fetch request

look for notes.txt in remzi dir

establish callback(C

1

) on notes.txt



return notes.txt’s content and FID

Receive Fetch reply

write notes.txt to local disk cache

record callback status of notes.txt

local open() of cached notes.txt

return file descriptor to application



read(fd, buffer, MAX);

perform local read() on cached copy



close(fd);

do local close() on cached copy

if file has changed, flush to server


Download 3,96 Mb.

Do'stlaringiz bilan baham:
1   ...   370   371   372   373   374   375   376   377   ...   384




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish