1. Consider a system of 9 processes, P = {p1, ..., p9}. Associated with the system are 6 memory cells, M = {M1, ..., M6}. The domain and range for each process is given in the following table: Process pi Domain D(pi) pl M1, M2 M1 M3, M4 M3, M4 p2 p3 p4 p5 рб p7 p8 p9 M3 M4 M5 M3, M4 M5, M6 Range R(pi) M3 M5 M1 M5 M4 M4 M5 M2 M6 In addition, you are given the following precedence relation: →= {(P1, P2), (P1, P6), (P2, P3), (P2, P4), (P2, P5), (P3, P6), (P3, P8),(P4,P6), (P4,P7), (P5,P7), (P5,P8), (P6,P8), (P6,P9), (P7,P9), (P8, P9)} a. Construct the Precedence Graph (not containing any redundant edges). Use PowerPoint, diagrams.net, or any other app to draw the graph. b. Determine if the system above is always determinate. If it is not, add to → necessary elements to make it determinate.

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
1. Consider a system of 9 processes, P = {p1, ., p9).
Associated with the system are 6 memory cells, M = {M1,., M6).
The domain and range for each process is given in the following table:
Process pi
Domain D(pi)
Range R(pi)
p1
M1, M2
M3
p2
M1
M5
p3
p4
М3, М4
М3, М4
M1
M5
p5
M3
M4
рб
M4
M4
p7
M5
M5
p8
МЗ, М4
M2
p9
M5, M6
M6
In addition, you are given the following precedence relation:
> = {(P1,P2), (P1,P6), (P2,P3), (P2,P4), (P2,P5),(P3,P6),(P3,P8),(P4,P6),
(P4,P7), (P5,P7), (P5,P8), (P6,P8), (P6,P9), (P7,P9), (P8,P9)}
a. Construct the Precedence Graph (not containing any redundant edges). Use PowerPoint,
diagrams.net, or any other app to draw the graph.
b. Determine if the system above is always determinate. If it is not, add to necessary
elements to make it determinate.
2. In the first problem, there were 9 processes, many of which were listed as pairs under the
precedence relation. Suppose we are dealing with a system of only 5 processes named P1 through
P5. You are given a set of constraints that are expressed by the following precedence relation:
> = {(P1,P3), (P1, P5), (P2,P4), (P3, P4), (P4, P5)}
Provide pseudocode to show how you can use semaphores to enforce these constraints (i.e., the
precedence relation →).
Transcribed Image Text:1. Consider a system of 9 processes, P = {p1, ., p9). Associated with the system are 6 memory cells, M = {M1,., M6). The domain and range for each process is given in the following table: Process pi Domain D(pi) Range R(pi) p1 M1, M2 M3 p2 M1 M5 p3 p4 М3, М4 М3, М4 M1 M5 p5 M3 M4 рб M4 M4 p7 M5 M5 p8 МЗ, М4 M2 p9 M5, M6 M6 In addition, you are given the following precedence relation: > = {(P1,P2), (P1,P6), (P2,P3), (P2,P4), (P2,P5),(P3,P6),(P3,P8),(P4,P6), (P4,P7), (P5,P7), (P5,P8), (P6,P8), (P6,P9), (P7,P9), (P8,P9)} a. Construct the Precedence Graph (not containing any redundant edges). Use PowerPoint, diagrams.net, or any other app to draw the graph. b. Determine if the system above is always determinate. If it is not, add to necessary elements to make it determinate. 2. In the first problem, there were 9 processes, many of which were listed as pairs under the precedence relation. Suppose we are dealing with a system of only 5 processes named P1 through P5. You are given a set of constraints that are expressed by the following precedence relation: > = {(P1,P3), (P1, P5), (P2,P4), (P3, P4), (P4, P5)} Provide pseudocode to show how you can use semaphores to enforce these constraints (i.e., the precedence relation →).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Parallel Processing
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
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