Questions about Operating systems: IPC Question 1: The two fundamental models of interprocess communication are shared memory and message passing. Which of the two models is usually easier to use for an application developer? Justify your answer! Question 2: Which of the two models of interprocess communication usually does not require using system calls for exchanging data between two processes? Briefly explain why! Question 3: Read the Linux manual page of the futex system call and answer the following questions: a. True or False: Is it a system calls to perform atomic instructions, for example for atomically changing a lock state from not acquired to acquired? b. True or False: Is it a system call that is useful for implementing hybrid two-phase locks, as it can be used to put a thread to sleep if longer waiting time is expected? c. True or False: Is it a system call that enables non-blocking synchronization? Question 4. (Anonymous) pipes are an IPC mechanisms in Linux (see pipe system call). How do you classify this IPC mechanisms: Is it an IPC mechanisms based on shared memory or based on message passing? Select the right box below: Select one of the following: 1.NOT a shared memory system, 2.Shared memory / with spin locks, 3.Shared memory / with blocking locks (waiting queues), 4.Shared memory / with non-blocking synchronization Select one of the following: 1. NOT a message passing system, 2. Message passing / direct messages / without buffering (zero capacity), 3. Message passing / direct messages / with buffering (bounded capacity), 4. Message passing / indirect message (mailbox) / without buffering, 5. Message passing / Indirect message (mailbox) / with buffering (bounded capacity)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

Questions about Operating systems: IPC

Question 1: The two fundamental models of interprocess communication are shared memory and message passing. Which of the two models is usually easier to use for an application developer? Justify your answer!

Question 2: Which of the two models of interprocess communication usually does not require using system calls for exchanging data between two processes? Briefly explain why!

Question 3: Read the Linux manual page of the futex system call and answer the following questions:

a. True or False: Is it a system calls to perform atomic instructions, for example for atomically changing a lock state from not acquired to acquired?

b. True or False: Is it a system call that is useful for implementing hybrid two-phase locks, as it can be used to put a thread to sleep if longer waiting time is expected?

c. True or False: Is it a system call that enables non-blocking synchronization?

Question 4.

(Anonymous) pipes are an IPC mechanisms in Linux (see pipe system call). How do you classify this IPC mechanisms:

Is it an IPC mechanisms based on shared memory or based on message passing? Select the right box below:

Select one of the following:

1.NOT a shared memory system,

2.Shared memory / with spin locks,

3.Shared memory / with blocking locks (waiting queues),

4.Shared memory / with non-blocking synchronization

Select one of the following:

1. NOT a message passing system,

2. Message passing / direct messages / without buffering (zero capacity),

3. Message passing / direct messages / with buffering (bounded capacity),

4. Message passing / indirect message (mailbox) / without buffering,

5. Message passing / Indirect message (mailbox) / with buffering (bounded capacity)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education