Question

Five batch Threads. A through E, occurred in a Process X at almost the same time....

Five batch Threads. A through E, occurred in a Process X at almost the same time. They have estimated running times of 10, 6, 2, 4, and 8 msec. For each of the following thread scheduling algorithms, determine the mean thread turnaround time. Ignore thread switching overhead.

A) Round robin. B) First-come, first-served (NP) (run in order 10, 6, 2, 4, 8).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION-

I have solved the problem below please check, if u have any doubt pease comment down below . Thank yoou!!

Solution. In. processes are mean. 41 Given estimated running time of 10, 6, 2, 4 and 8 min. A Round robin Id is Bremptive mus

пии ch) first come first leaved- C Processes to completion in the order the order of Arsival) A complete after 10 min B compl

IF YOU HAVE ANY DOUBT PLEASE COMMENT DOWN BELOW I WILL SOLVE IT FOR YOU:)

----------------PLEAESE RATE THE ANSWER-----------THANK YOU!!!!!!!!----------

Add a comment
Know the answer?
Add Answer to:
Five batch Threads. A through E, occurred in a Process X at almost the same time....
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
  • Five batch jobs, A through E, arrive in alphabetical order at a computer at almost the...

    Five batch jobs, A through E, arrive in alphabetical order at a computer at almost the same time (i.e. they all arrive before the next scheduling event occurs). They have estimated running times of 500, 300, 600, 700, and 200 ms, respectively. Using diagrams, show how the process scheduling algorithms below would schedule these jobs, and calculate the mean process turnaround time (assuming no process switching overhead): FCFS SPN RR with a quantum of 100ms RR with a quantum of...

  • Five batch jobs (A,D,I,J,K) arrive at a computer at the same time(at time=0). The quantum size...

    Five batch jobs (A,D,I,J,K) arrive at a computer at the same time(at time=0). The quantum size of this system is 2 units of time. For each of the scheduling methods given below, calculate the average waiting time for the 5 jobs. Show (use timing diagrams) and explain your steps. You can prepare it by hand or on a computer. The following jobs and the estimated running times are defined: A 2 B 6 C 4 D 8 E 2 F...

  • The question is this. there is nothing given [8 What is the waiting time of each...

    The question is this. there is nothing given [8 What is the waiting time of each process for each of the scheduling algorithms? Marks] Job Arrival Time Size (msec) P1 0 9 Priority 3 (Silver) 1 (Diamond) 3 (Silver) P2 3 P3 3 3 P4 6 5 4 (Bronze) 2 (Gold) P5 7 4 (a) First-Come-First-Served (FCFS) scheduling (b) Preemptive PRIORITY scheduling (c) Non-preemptive PRIORITY scheduling (d) Round Robin (RR) (quantum = 3) scheduling

  • Design Principles Canvas Ā 8 pts Question 35 Five batch jobs, A, B, C, D, and...

    Design Principles Canvas Ā 8 pts Question 35 Five batch jobs, A, B, C, D, and E, arrive at a computer system at time 0, 1, 2, 3, 4, respectively. And they have service time of 7.1. 3,5, and 4, respectively. The new jobs arrive a little ahead of the expiration of time slices. For each of the following scheduling algorithms, determine the turnaround time for each process for all jobs. Ignore process switching overhead. • Round robin with a...

  • 1. Threads created by a single program share the same memory address space. T/F 2. Threads...

    1. Threads created by a single program share the same memory address space. T/F 2. Threads created by a single program share the same memory stack. T/F 3. Threads created by a single program share the same scheduling state (e.g., Ready, Waiting). T/F 4. Threads created by a single program share the same open files. T/F 5. A thread enters the Running state when the thread scheduler resumes it. T/F 6. The thread_exit() call can immediately garbage collect the exited...

  • Five processes arrive to run on a CPU. The scheduler puts them in its data structure....

    Five processes arrive to run on a CPU. The scheduler puts them in its data structure. The table below lists the processes, how much CPU time each will need, and the priority of each process. One(1) is the highest priority and 4 is the lowest priority. Process CPU time needed Priority P1 P2 P3 NNW-W a. The scheduler uses First Come First Serve to schedule the jobs. Fill in the time line below showing at what time each process starts...

  • (30 points) Assume you have three processes with the following attributes running on a single CPU...

    (30 points) Assume you have three processes with the following attributes running on a single CPU (uniprocessor system): Process 1/0 Burst Total CPU Time Arrival Time CPU Burst | 05 22 12 B 7 10 C D Create three scheduling simulations for these processes using the following algorithms: a. First Come First Served (FCFS) b. Round Robin, Time Slice = 2 c. Shortest Job (CPU Burst Time) First with NO Preemption Use the simulation format we covered in class to...

  • Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst....

    Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst.   I/O Burst Total CPU time A. 0 4 4 9 B 3 2 3 7 C 6 5 1 11 D 12 1 1 5 As we did in class, perform a scheduling simulation using these four processes according to the following algorithms: 1) First Come First Serve 2) Round Robin with time slice = 1 3) Round Robin with time slice = 3...

  • Description In this homework, you are asked to implement a multithreaded program that will allow ...

    Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...

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