Chapter 8 Flashcards

1
Q

What is intern process communication (IPC)

A

How a cooperating process communicate with another cooperating process and sends information. Process communicate with each other without resorting to shared variables.

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

What is direct inter process communication

A

The process should have name for sender

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

What is indirect inter process communication

A

There is no need to put process name

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

What are 2 basic requirements for inter process communication

A
  1. There should be communication link

2. There should be send message and receive message

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

What are 2 implementation of communication link

A
  1. Physical (e.g. shared memory, hardware)

2. Logical (Logical properties)

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

What is meaning of link unidirectional and bidirectional

A

It means data can transfer either on one side or both sides

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

What is full duplex channel and half duplex channel

A

Half duplex channel means channel has capability to send data on both directions but at one time. On the other hand, in the full duplex mode of transmission, the communication is bi-directional.

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

Can there be multiple channels for process communication

A

Yes

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

Does each pair of process may share several communication links in indirect communication

A

Yes

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

Message passing may be blocking or non-blocking (synchronous or asynchronous)
True or False

A

True

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

What are 3 possible scenarios of queues of messages or buffering

A
  1. Zero capacity = No message can be queue (example of 2 labor, one man is throwing bricks and other is catching)
  2. Bounded capacity = N messages can be queued, fixed size buffering (example of truck that contain bricks and unload bricks in a fixed place)
  3. Unbounded capacity = Infinite capacity/length (truck on bricks come and we place it everywhere like on road, neighbors, ground thinking every where is available)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are tools for IPC

A
  • Pipe
  • Named pipe (FIFO)
  • BSD (Berkley software distribution) Socket
  • TLI (transport layer interlink)
  • Message queue
  • Shared memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are important system calls of UNIX/Linux

A
  • Pipe (Create a pipe for IPC)
  • Read (Read from a pipe)
  • Write (Write data to a pipe)
  • Close (close/destroy pipe)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is pipe

A

Pipe is a communication channel through which 2 processes can talk (indirect communication - mailbox based sharing)

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

What open() do

A

It is for open a file. It returns an integer value called file descriptor which is just opened.

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

What is PPFDT

A

Per process file descriptor table. The integer value returned by open() call use as an index in PPFDT

17
Q

What is size of PPFDT

A

How many files PPFDT that a process can open

18
Q

What are 2 descriptor of a pipe

A

Write end descriptor

Read end descriptor

19
Q

When a pipe can destroy

A
  • When it could not return 2 descriptors

- Problems in the capacity of bounded buffer