Chapter 10 Flashcards

1
Q

IPC

A

Allow processes to communicate with each other and synchro their actions. This communication is done through the shared mem, which allows to exchange data by writing to or reading from a common mem space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Message based communication

A

Send(destination, message)
Receive(source, message)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Synchro methods of the communication - synchronous message exchange (rendezvous)

A

Recipient blocks until the message is received and the sender also blocks until it receives an acknowledgement message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Synchro methods of the communication - asynchronous message exchange

A

Sender sends the message to the OS and immediately resumes its operation without waiting for an acknowledgement message, blocking is optional in both sides, buffering is always required because the message needs to be temporary stored until the recipient is ready to process it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Addressing modes of the communication

A
  1. Direct addressing: message is sent directly to a specific process by using process ID.
  2. Indirect addressing: message is sent through an intermediary mechanism that stores and forwards the message such as pipes. Messages are stored in mailbox or buffer, from where the recipient can retrieve them.
  3. Then we have Unica multicast and broadcast..
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Properties of messages of the communication

A

Message format and transmission mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Signals

A

Are interrupts recreated in software, they are like interrupts to notify processes of events and they are a minimal form of IPC. Processes can send signals using kill( ).

Signal handling always takes place at the transition from kernel to user mode.

If the receiving process is in RUNNING state, signal handling is started immediately
If the receiving process is in READY state, signal is registered in PCB and as soon as the process starts running, the signal handling takes place
If the receiving process is in BLOCKED state, waiting for an event. The I/O call is aborted and the process is set to READY.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly