21-Consider the following set of processes with the given CPU and /vO burst times. Assume they arrive in the order A, B, C, D all at time 0. Find the AWT as an SRTF scheduling algorithm is used. Assume a process's waiting time is the time from when it arrives until it runs for the first time. Ignore scheduling and switching times. Process CPU Burst /O Burst A 4 B 4 2 2. 4

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter20: Queuing Theory
Section20.10: Exponential Queues In Series And Open Queuing Networks
Problem 12P
icon
Related questions
Question

operating system , please solve question 21

19-A physical memory unit uses contiguous allocation. Assume four new processes each of size 40
KB arrive and get allocated using a worst-fit algorithm. If the available holes have sizes 40 KB, 64 KB,
100 KB, write down the sizes of all remaining holes in the memory after the new allocations.
20- What two reasons could cause a page fault?
21-Consider the following set of processes with the given CPU and /o burst times. Assume they
arrive in the order A, B, C, D all at time 0. Find the AWT as an SRTF scheduling algorithm is used.
Assume a process's waiting time is the time from when it arrives until it runs for the first time.
Ignore scheduling and switching times.
Process
CPU Burst
1/O Burst
3.
4
B
4
2.
2.
D
4
22- Using the information in question 21 above, a new scheduling algorithm is preemptive and gives
priority to the process with the longest CPU Burst time. If a process arrives and has a CPU burst time
longer than the remaining CPU burst time of the running process. A contest switch is done. Calculate
the AWT (until each process runs for the first time) of this new algorithm.
23- Write a sequence of LINUX commands (with their arguments) necessary to compile the source
files A.c and B.c into object files A.o and B.0, then ilnk them into an executable called myExe. The
object files must remain in the directory after the linking.
Transcribed Image Text:19-A physical memory unit uses contiguous allocation. Assume four new processes each of size 40 KB arrive and get allocated using a worst-fit algorithm. If the available holes have sizes 40 KB, 64 KB, 100 KB, write down the sizes of all remaining holes in the memory after the new allocations. 20- What two reasons could cause a page fault? 21-Consider the following set of processes with the given CPU and /o burst times. Assume they arrive in the order A, B, C, D all at time 0. Find the AWT as an SRTF scheduling algorithm is used. Assume a process's waiting time is the time from when it arrives until it runs for the first time. Ignore scheduling and switching times. Process CPU Burst 1/O Burst 3. 4 B 4 2. 2. D 4 22- Using the information in question 21 above, a new scheduling algorithm is preemptive and gives priority to the process with the longest CPU Burst time. If a process arrives and has a CPU burst time longer than the remaining CPU burst time of the running process. A contest switch is done. Calculate the AWT (until each process runs for the first time) of this new algorithm. 23- Write a sequence of LINUX commands (with their arguments) necessary to compile the source files A.c and B.c into object files A.o and B.0, then ilnk them into an executable called myExe. The object files must remain in the directory after the linking.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Properties of Different Architectures
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
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole