Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help me for those Operation System questions FCFS(First-Come First-Served): Consider a system with tasks P1, P2, and P3 with time bursts of 20, 10, and

Help me for those Operation System questions

  1. FCFS(First-Come First-Served): Consider a system with tasks P1, P2, and P3 with time bursts of 20, 10, and 1 ms, respectively. Draw a Gantt chart representing the schedule if the tasks arrive in order: P1, P2, P3. What is the average waiting time?

  1. Consider a system using preemptive SJF algorithm. The systems is running tasks P1, P2, P3, and P4, whose arrival times are 0, 1, 2, and 3 and whose CPU time bursts are 10, 1, 3, and 20, respectively. Draw a Gantt chart showing the execution schedule. What is the average execution time?

3.Now, assume the system in previous uses a preemptive (SJF) scheduler. Draw a Gantt chart showing the schedule. What is the average waiting time

4. Is it possible to achieve true parallelism with one-to-many model? One-to-one model? Many-to-many model?

5. What are the three requirements for synchronization?

6. Illustrate how race conditions may occur even on single processor systems.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building The Data Lakehouse

Authors: Bill Inmon ,Mary Levins ,Ranjeet Srivastava

1st Edition

1634629663, 978-1634629669

More Books

Students also viewed these Databases questions

Question

Discuss five types of employee training.

Answered: 1 week ago

Question

Identify the four federally mandated employee benefits.

Answered: 1 week ago