Preview

A3

Good Essays
Open Document
Open Document
849 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
A3
6.11 – Why is it important for the scheduler to distinguish I/O-bound programs from CPU-bound programs?
I/O-bound programs use very little computation while being performed and so do not use up their entire CPU quantum. CPU programs use their entire quantum without blocking the I/O operations.
6.16 – Consider the following set of processes, with the length of the CPU burst given milliseconds:
Process
P1
P2
P3
P4
P5
Burst Time
2
1
8
4
5
Priority
2
1
4
2
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, non-preemptive priority (a larger priority number implies a higher priority), and RR (quantum = 2).
FCFS
------------------------------------------------------------------------------------
| P1 | P2 | P3 | P4 | P5 |
------------------------------------------------------------------------------------
0 2 3 11 15 20
SJF
------------------------------------------------------------------------------------
| P2 | P1 | P4 | P5 | P3 |
------------------------------------------------------------------------------------
0 1 3 7 12 20
Non-preemptive priority
------------------------------------------------------------------------------------
| P2 | P1 | P4 | P5 | P3 |
------------------------------------------------------------------------------------
0 1 3 7 12 20
Round-Robin

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    Multiple threads can interfere with each other when sharing hardware resources such as caches or translation lookaside buffers (TLBs). As a result, execution times of a single thread are not improved but can be degraded, even when only one thread is executing, due to lower frequencies or additional pipeline stages that are necessary to accommodate thread-switching hardware.…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Study Guide

    • 2629 Words
    • 11 Pages

    CPU scheduler is to selects from among the processes in memory ready to execute and allocates the CPU to one of them. CPU scheduling decisions may take place when a process:…

    • 2629 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    Today’s lecture will be spent entirely in the computer lab. At the end of lab, submit this worksheet.…

    • 581 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    5. [3] Ten processes share a critical section implemented by using a semaphore x. Nine…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2. Which processes are not represented? How could the model be altered to include these processes?…

    • 334 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A7A 4 EVER

    • 255 Words
    • 2 Pages

    Format: Rough drafts should be minimum four pages and final drafts should be minimum five pages. They should be formatted according to MLA standards (consult your grammar handbook), typed in Times New Roman 12 with 1 inch margins. Papers should have a title, be stapled and contain the student’s name and due date in the upper left hand corner.…

    • 255 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Science 201

    • 366 Words
    • 2 Pages

    2. Which processes are not represented? How could the model be altered to include these processes?…

    • 366 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    M3A2

    • 659 Words
    • 3 Pages

    Marginal Revenue = ∆ in Total Revenue that results from selling 1 more unit of output.…

    • 659 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    W3A1

    • 857 Words
    • 3 Pages

    Identify and describe Kohlberg's three stages of moral development and explain how each stage applies to your own personality formation. Do you agree with Kohlberg, who suggested that the third stage is difficult for many people in our society to reach? Why or why not?…

    • 857 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    e. If the arrival rate remained unchanged, but the average time in system must be 45 minutes or less, what would need to be changed?…

    • 490 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Chapter3 OS Essentials

    • 619 Words
    • 3 Pages

    3.9 Including the initial parent process, how many processes are created by the program shown in Figure 3.28?…

    • 619 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Human Resource Methodology

    • 5186 Words
    • 21 Pages

    ANNA UNIVERSITY OF TECHNOLOGY MADURAI MADURAI REGULATIONS 2010 CURRICULUM AND SYLLABI MASTER OF BUSINESS ADMINISTRATION…

    • 5186 Words
    • 21 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Maths

    • 317 Words
    • 2 Pages

    (a)Based on the chart the process is in statistical control with no out-of-control signals, runs, trends or cycles.…

    • 317 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    * To reduce the changeover time, sequential processes need to be converted into parallel processes.…

    • 558 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Instruction Cycle

    • 1910 Words
    • 8 Pages

    The fetch-decode-execute cycle represents the steps that a computer follows to run a program. The CPU fetches an instruction (transfers it from main memory to the instruction register), decodes it (determines the op-code and fetches any data necessary to carry out the instruction), and executes it (performs the operation(s) indicated by the instruction). A large part of this cycle is spent copying data from one location to another. When a program is initially loaded, the…

    • 1910 Words
    • 8 Pages
    Powerful Essays