Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question
How many traces does figure 2 have?
Recall the "coffee with a friend" situation, involving the two (concurrent) processes depicted in Figure 1
start
drink coffee
0
start (0,0)
think
(0, 1)
Figure 1: Two concurrent processes that are happening while having coffee with a friend
talk
start
The composition of these two processes would be as given in Figure 2 The composition is somehow
the "product" of these processes, and is a complete representation of this concurrent system. Its nodes
represent the possible states that the system can be in, e.g., (1, 1) represents that I already drank my
coffee, while I have thought about what to say, but have not said it yet. The edges give the possible
transitions between these (composite) states, and so each path from the initial state (0, 0) to the final
state (1,2) represents a possible trace of this system, e.g., think→ drink coffee → talk.
drink coffee
start
drink coffee
drink coffee
(0, 2)
0
think
(1,2)
eat cookie
0
talk
talk
(1, 1)
2
think
Figure 2: The composition of the two concurrent processes of Figure 1
(1,0)
One could imagine yet a third process happening concurrently to the first two, as depicted in Figure 3.
while having coffee with a friend. Again, one cannot eat a cookie while drinking coffee, thinking or talking
(or should not?), but any of these can happen in any order, with the exception that one must think before
talking, as constrained by the second process depicted in Figure [1]
Figure 3: Another possible (concurrent) process among those of Figure 1
expand button
Transcribed Image Text:Recall the "coffee with a friend" situation, involving the two (concurrent) processes depicted in Figure 1 start drink coffee 0 start (0,0) think (0, 1) Figure 1: Two concurrent processes that are happening while having coffee with a friend talk start The composition of these two processes would be as given in Figure 2 The composition is somehow the "product" of these processes, and is a complete representation of this concurrent system. Its nodes represent the possible states that the system can be in, e.g., (1, 1) represents that I already drank my coffee, while I have thought about what to say, but have not said it yet. The edges give the possible transitions between these (composite) states, and so each path from the initial state (0, 0) to the final state (1,2) represents a possible trace of this system, e.g., think→ drink coffee → talk. drink coffee start drink coffee drink coffee (0, 2) 0 think (1,2) eat cookie 0 talk talk (1, 1) 2 think Figure 2: The composition of the two concurrent processes of Figure 1 (1,0) One could imagine yet a third process happening concurrently to the first two, as depicted in Figure 3. while having coffee with a friend. Again, one cannot eat a cookie while drinking coffee, thinking or talking (or should not?), but any of these can happen in any order, with the exception that one must think before talking, as constrained by the second process depicted in Figure [1] Figure 3: Another possible (concurrent) process among those of Figure 1
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education