Suppose we have a system of 3 processes named A, B and C. A sends two messages to C- the message contents being 1 and 2 respectively. Similarly B sends 2 messages to C; the contents being 3 and 4 respectively. Process C simply keeps doing this: receive a message and print it. (a) Assuming all the default assumptions, what possible outputs will be generated by C? (By "output" we mean the entire sequence of numbers printed by Cin a complete run of the system. Note that several different sequences are possible in different runs.) You can enumerate these sequences or describe them precisely in words. (b) Assuming that the communication lines are non-FIFO, what would be your new answer?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question
Computer science
Suppose we have a system of 3 processes named A, B and C. A sends two
messages to C- the message contents being 1 and 2 respectively. Similarly B
sends 2 messages to C; the contents being 3 and 4 respectively.
Process C simply keeps doing this: receive a message and print it.
(a) Assuming all the default assumptions, what possible outputs will be
generated by C? (By "output" we mean the entire sequence of numbers
printed by C in a complete run of the system. Note that several different
sequences are possible in different runs.) You can enumerate these
sequences or describe them precisely in words.
(b) Assuming that the communication lines are non-FIFO, what would be your
new answer?
Transcribed Image Text:Suppose we have a system of 3 processes named A, B and C. A sends two messages to C- the message contents being 1 and 2 respectively. Similarly B sends 2 messages to C; the contents being 3 and 4 respectively. Process C simply keeps doing this: receive a message and print it. (a) Assuming all the default assumptions, what possible outputs will be generated by C? (By "output" we mean the entire sequence of numbers printed by C in a complete run of the system. Note that several different sequences are possible in different runs.) You can enumerate these sequences or describe them precisely in words. (b) Assuming that the communication lines are non-FIFO, what would be your new answer?
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Designing Real Time System
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning