Question

(after a Stallings problem) Assume at time 5, no system resources are being used except the...

(after a Stallings problem) Assume at time 5, no system resources are being used except the
processor and memory. Given this, consider this sequence of events:
at time = 5: P1 executes a command to read from disk unit 3;
at time = 15: P5’s time slice expires;
at time = 18: P7 executes a command to write to disk unit 3;
at time = 20: P3 executes a command to read from disk unit 2;
at time = 24: P5 executes a command to write on disk unit 3;
at time = 28: P5 is swapped out;
at time = 33: an interrupt occurs from disk unit 2, P3’s read is complete;
at time = 36: an interrupt occurs from disk unit 3, P1’s read is complete;
at time = 38: P8 finishes;
at time = 40: an interrupt occurs drom disk unit 3: P5’s write is complete;
at time = 44: P5 is swapped back in;
at time = 48: an interrupt occurs from disk unit 3: P7’s write is complete

For each of times 16, 29 and 48, identify which state each process is in. If a process is blocked, identify the
event on which it is blocked. You will only be able to indicate that a process is ready to run, since there isn’t
information provided to let you know if it is running as opposed to only runnable (ready to run).

ALSO: Please explain/show how you arrived to the answers. Thank you so much.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
(after a Stallings problem) Assume at time 5, no system resources are being used except the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please show also the work. Thank you. (after a Stallings problem) Assume at time 5, no...

    Please show also the work. Thank you. (after a Stallings problem) Assume at time 5, no system resources are being used except the processor and memory. Given this, consider this sequence of events: at time = 5: P1 executes a command to read from disk unit 3; at time = 15: P5's time slice expires; at time = 18: P7 executes a command to write to disk unit 3; at time = 20: P3 executes a command to read from...

  • Assume that at time 5 no system resources are being used except for the processor and...

    Assume that at time 5 no system resources are being used except for the processor and memory and every process (1,3) is either in ready queue (ready to run) or at CPU. Now consider the following events: (Hints: if a process executes something, it is on CPU at the point, if a process going to do IO or create a process, it needs to give out CPU immediately, if a process is time-out, an event will occur and listed here.)...

  • C program Read file problem: For example, I have an input.txt file like this: q 1...

    C program Read file problem: For example, I have an input.txt file like this: q 1 tq 4 p1 10 p2 5 p3 7 p4 20 p5 17 p6 9 p7 3 p8 11 p9 15 p10 1 I want the num of q is in one array, tq is in one array, the order of process(ie,p1,p2) is in one array, and process time is in one array(process time is the number after like p1,p2). There may many q,tq,p so...

  • Problem 8, chapter 11-I/O Management And Disk Scheduling, Stalling Operating system

    Calculate how much disk space (in sectors, tracks, and surfaces) will be requiredto store 300,000 120-byte logical records if the disk is fixed-sector with 512bytes/sector, with 96 sectors/track, 110 tracks per surface, and 8 usable surfaces.Ignore any file header record(s) and track indexes, and assume that records cannotspan two sectors.---------------------------------------------------------------------------------------------------P4Consider the disk system described in Problem 3, and assume that the disk rotatesat 360 rpm. A processor reads one sector from the disk using interrupt-driven I/O,with one interrupt per byte....

  • Implement the following 3 CPU scheduling algorithms Simulate and evaluate each with the set of eight...

    Implement the following 3 CPU scheduling algorithms Simulate and evaluate each with the set of eight processes below. Use any programming language. The program listing should be submitted with the report. FCFS (First Come First Serve) non-preemptive (partial results provided) SJF non-preemptive MLFQ Multilevel Feedback Queue (absolute priority in higher queues)             Queue 1 uses RR scheduling with Tq = 5             Queue 2 uses RR scheduling with Tq = 10             Queue 3 uses FCFS All processes enter first...

  • (Write or type in answers, except for problem #15, which should be entered as a small...

    (Write or type in answers, except for problem #15, which should be entered as a small program, tested, and submitted in Repl.it) 1. Write a Python statement to define a list named temps using the following elements, in order: 95, 100, 77, 54, 103, 82 2. a) What is the length of the list temps? b) What Python function can be used to obtain the length of the list? Use it in a statement to obtain the length of temps...

  • Vocabulary Exercises is the communication channel that connects all computer system components Cache types that are...

    Vocabulary Exercises is the communication channel that connects all computer system components Cache types that are generally implemented on the same chip as the CPU include 3. thus controlling access to the bus by all other The CPU is always capable of being a(a) devices in the computer system. 4. An) is a reserved area of memory used to resolve differences in data transfer rate or data transfer unit size. 5. A(n) is an area of fast memory where data...

  • scheduling program in C, please help 1 Objectives This programming project is to simulate a few...

    scheduling program in C, please help 1 Objectives This programming project is to simulate a few CPU scheduling policies discussed in the class. You will write a C program to implement a simulator with different scheduling algorithms. The simulator selects a task to run from ready queue based on the scheduling algorithm. Since the project intends to simulate a CPU scheduler, so it does not require any actual process creation or execution. When a task is scheduled, the simulator will...

  • Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In...

    Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In this scheme, some procedure is used to identify when a deadlock occurs, and then another procedure is used to deal with the blocked processes. One technique to identify a deadlock is to maintain a resource graph that identifies all processes, all resources, and the relationships between them (that is, which processes exclusively own which resources, and which processes are blocked waiting for which...

  • The goal is to create a code for implementing a Columns game using pygame Your program...

    The goal is to create a code for implementing a Columns game using pygame Your program will read its input via the Python shell (i.e., using the built-in input() function), printing no prompts to a user with no extraneous output other than precisely what is specified below. The intent here is not to write a user-friendly user interface; what you're actually doing is building a tool for testing your game mechanics, which we'll then be using to automatically test them....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT