Question

i. What is the total elapsed time for the two processes to run to completion? ii. Assume the system runs a non-preemptive sch

I would like Question 3 answered please


i. What is the total elapsed time for the two processes to run to completion? ii. Assume the system runs a non-preemptive scheduler where proceses are scheduled in the order in which they become runnable, and that B takes priority over A in the event of a tie. Give the combined execution pattern of the two processes in the format as in part b), and determine the total elapsed time for the two processes to run to completion. Repeat part b) ii) with a pre-emptive scheduler operating with a time slice of 4 ms. iv. What are the costs and the benefits of a pre-emptive over a non-preemptive scheduler for this workload, which would you choose, and why? Exercise 4 120 points)
1 0
Add a comment Improve this question Transcribed image text
Answer #1
  1. Interrupt:  In system programming, an interrupt is a signal to the processor emitted by hardware or software indicating an event that needs immediate attention.
  2. Polled Mode Operation : In computer science, refers to actively sampling the status of an external device by a client program as a synchronous activity. Polling is most often used in terms of input/output (I/O), and is also referred to as polled I/O or software-driven I/O.
  3. Direct Memory Access : Direct memory access (DMA) is a feature of computer systems that allows certain hardware subsystems to access main system memory (random-access memory), independent of the central processing unit (CPU).

CPU-I/O Burst Cycle :

  • Almost all processes alternate between two states in a continuing cycle, as shown in Figure 6.1 below :
    • A CPU burst of performing calculations, and
    • An I/O burst, waiting for data transfer in or out of the system.

load store add store read from file CPU burst wait for IVO IVO burst store increment index write to file CPU burst wait for I

Alternating sequence of CPU and I/O bursts

* CPU bursts vary from process to process, and from program to program, but an extensive study shows frequency patterns similar to that shown in Figure

media%2Fbfa%2Fbfa93215-e690-4e83-ba35-de

Histogram of CPU-burst durations

CPU bound means the program is bottlenecked by the CPU, or central processing unit, while I/O bound means the program is bottlenecked by I/O, or input/output, such as reading or writing to disk, network, etc. In general, when optimizing computer programs, one tries to seek out the bottleneck and eliminate it.

And

In computer science, I/O bound refers to a condition in which the time it takes to complete a computation is determined principally by the period spent waiting for input/output operations to be completed. This is the opposite of a task being CPU bound.

I had written these answer by self, please thumbs up, and if you have any other query please feel free to ask in comment.

Add a comment
Know the answer?
Add Answer to:
I. What is the total elapsed time for the two processes to run to completion? ii. Assume the syst...
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 answer the following question in C++ language Consider the following set of processes, with the...

    Please answer the following question in C++ language Consider the following set of processes, with the length of the CPU burst time given in milliseconds: Process            Burst Time      Priority P1. 7 5 P2 2 4 P3 11 3 P4 9 1 P5 5 3 The processes are assumed to have arrived in the order P1,P2, P3, P4, P5, all at time 0. a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, nonpreemptive...

  • java  Operating System Scheduler Two scheduling strategies for an operating system scheduler are first come first serve...

    java  Operating System Scheduler Two scheduling strategies for an operating system scheduler are first come first serve (FCFS) and fixed priority pre-emptive scheduling (FPPS). Since queues operate on a first come first serve basis, FCFS is implemented using a queue. Similarly, FPPS is implemented using a priority queue. The operating system scheduler simulation is already provided for you. To use it you simply need to modify the main method to run the simulator using either the LinkedListQueue or the PriorityQueue. Run...

  • En (2 points) You isolated your mitochondrial DNA in Part I. In step 6, you discard...

    En (2 points) You isolated your mitochondrial DNA in Part I. In step 6, you discard the supernatant, but keep the pellet. In step 15, you discard the pellet, but keep the supernatant. Explain why the pattern is different between the two steps and the consequence of mixing up these two steps. Procedure Part 1: mt DNA Isolation from your cheek cells. Lysis solution is used to breakdown the cells in this step, you will isolate MEONA from cheek cells....

  • I have this case study to solve. i want to ask which type of case study...

    I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • 10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated...

    10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...

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