b) Draw the process states for the traces that illustrate the transition of each process among the states based on the Five-State Process Model.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Solve all parts of the problem without AI
b) Draw the process states for the traces that illustrate the transition of each process among the states
based on the Five-State Process Model.
Process A
Process B
Process C
Dispatcher
0
5
10
15
20
25
-Running
= Ready
***for convenience, the instruction cycles are numbered
30
35
-Blocked-
40
45
Transcribed Image Text:b) Draw the process states for the traces that illustrate the transition of each process among the states based on the Five-State Process Model. Process A Process B Process C Dispatcher 0 5 10 15 20 25 -Running = Ready ***for convenience, the instruction cycles are numbered 30 35 -Blocked- 40 45
Consider the following memory layout of three processes: Process A, Process B, and Process C.
For simplification, we assume no use of virtual memory; thus, all three processes are represented
by programs that are fully loaded in main memory as shown below. In addition, there is a small
dispatcher program that switches the processor from one process to another.
Address Main Memory
0
1000
6000
10000
16000
20000
30000
38000
Dispatcher
Process A
Process B
Process C
The following table shows the traces of each of the processes during the early part of their
execution. The first 8 instructions executed in processes A and B are shown. Process C executes
3 instructions, and we assume that the 3rd instruction invokes an I/O operation for which the
process must wait for 3 instruction cycles for the I/O operation to be completed.
Trace of Process A
10,000
10,001
10,002
10,003
10,004
10,005
10,006
10,007
Trace of Process B
20,000
20,001
20,002
20,003
20,004
20,005
20,006
20,007
Trace of Process C
30,000
30,001
30,002
35,000
35,001
35,002
35,003
Trace of Dispatcher
1,000
1,001
1,002
1,003
a) Assume the following sequence of process execution: ABC ABC.
Draw these traces from the processor's point of view assuming that the OS only allows a process to
continue execution for a maximum of 4 instruction cycles, after which it is interrupted to prevent any
single process from monopolizing processor time.
Transcribed Image Text:Consider the following memory layout of three processes: Process A, Process B, and Process C. For simplification, we assume no use of virtual memory; thus, all three processes are represented by programs that are fully loaded in main memory as shown below. In addition, there is a small dispatcher program that switches the processor from one process to another. Address Main Memory 0 1000 6000 10000 16000 20000 30000 38000 Dispatcher Process A Process B Process C The following table shows the traces of each of the processes during the early part of their execution. The first 8 instructions executed in processes A and B are shown. Process C executes 3 instructions, and we assume that the 3rd instruction invokes an I/O operation for which the process must wait for 3 instruction cycles for the I/O operation to be completed. Trace of Process A 10,000 10,001 10,002 10,003 10,004 10,005 10,006 10,007 Trace of Process B 20,000 20,001 20,002 20,003 20,004 20,005 20,006 20,007 Trace of Process C 30,000 30,001 30,002 35,000 35,001 35,002 35,003 Trace of Dispatcher 1,000 1,001 1,002 1,003 a) Assume the following sequence of process execution: ABC ABC. Draw these traces from the processor's point of view assuming that the OS only allows a process to continue execution for a maximum of 4 instruction cycles, after which it is interrupted to prevent any single process from monopolizing processor time.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY