Distributed computing


BLOCKING (SYNCHRONOUS) VS. NON-BLOCKING (ASYNCHRONOUS) COMMUNICATION



Download 0,86 Mb.
bet2/38
Sana24.04.2022
Hajmi0,86 Mb.
#578449
1   2   3   4   5   6   7   8   9   ...   38
Bog'liq
distcomp

BLOCKING (SYNCHRONOUS) VS. NON-BLOCKING (ASYNCHRONOUS) COMMUNICATION

  • For sender: Should the sender wait for the receiver to receive a message or not?
  • For receiver: When arriving at a reception point and there is no message waiting, should the receiver wait or proceed? Blocking receive is normal (i.e., receiver waits).
  • sender
  • receiver
  • send
  • ACK
  • BLOCKING
  • send
  • NO
  • COMPUTATION
  • sender
  • receiver
  • send
  • ACK (?)
  • NON-BLOCKING

REMOTE PROCEDURE CALL

  • Client calls the server using a call server (in parameters; out parameters). The call can appear anywhere that a normal procedure call can.
  • Server returns the result to the client.
  • Client blocks while waiting for response from server.
  • CLIENT
  • server
  • call
  • return

RENDEZVOUS FACILITY

  • One process sends a message to another process and blocks at least until that process accepts the message.
  • The receiving process blocks when it is waiting to accept a request.
  • Thus, the name: Only when both processes are ready for the data transfer, do they proceed.
  • We will see examples of rendezvous interactions in CSP and Ada.
  • sender
  • receiver
  • send
  • accepted
  • accept

Beyond send-receive: Conversations

  • Needed when a continuous connection is more efficient and/or only some data at a time.
  • Bob and Alice: Bob initiates, Alice responds, then Bob, then Alice, …
  • But what if Bob wants Alice to send messages as they arrive without Bob’s doing more than an ack?
  • Sendonly or receiveonly mode.
  • Others?

SEPARATION OF CONCERNS

  • Separation of concerns is the software engineering principle that each component should have a single small job to do so it can do it well.
  • In distributed systems, there are at least three concerns having to do with remote services: what to request, where to do it, how to ask for it.

Download 0,86 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   38




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