Lecture 2-3 Distributed
Lecture 2-3 Distributed
Ø Interprocess communication is at the heart of all distributed systems. It makes no sense to study distributed systems
without carefully examining the ways that processes on different machines can exchange information.
Ø In a distributed system, there’s no shared memory, so the entire nature of interprocess communication must be completely
rethought from scratch.
For Example
Proc. A wants to communicate with Proc. B
1. It first builds a message in its own address space
2. It executes a system call
3. The OS fetches the message and sends it through network to B.
4. A and B have to agree on the meaning of the bits being sent.
For example,
How many volts should be used to signal a 0-bit? 1-bit?
How does the receiver know which is the last bit of the message?
How can it detect if a message has been damaged or lost?
What should it do if it finds out?
How long are numbers, strings, and other data items? And how are they represented?