Preview

Should Sex and Violence on Television or in the Movies Be Restricted?

Good Essays
Open Document
Open Document
836 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Should Sex and Violence on Television or in the Movies Be Restricted?
CHAPTER

5

CPU Scheduling
Practice Exercises
5.1 A CPU-scheduling algorithm determines an order for the execution of its scheduled processes. Given n processes to be scheduled on one processor, how many different schedules are possible? Give a formula in terms of n. Answer: n! (n factorial = n × n – 1 × n – 2 × ... × 2 × 1). Explain the difference between preemptive and nonpreemptive scheduling. Answer: Preemptive scheduling allows a process to be interrupted in the midst of its execution, taking the CPU away and allocating it to another process. Nonpreemptive scheduling ensures that a process relinquishes control of the CPU only when it finishes with its current CPU burst. Suppose that the following processes arrive for execution at the times indicated. Each process will run for the amount of time listed. In answering the questions, use nonpreemptive scheduling, and base all decisions on the information you have at the time the decision must be made. Process P1 P2 P3 a. b. c. Arrival Time 0.0 0.4 1.0 Burst Time 8 4 1

5.2

5.3

What is the average turnaround time for these processes with the
FCFS scheduling algorithm?

What is the average turnaround time for these processes with the
SJF scheduling algorithm?

The SJF algorithm is supposed to improve performance, but notice that we chose to run process P1 at time 0 because we did not know that two shorter processes would arrive soon. Compute what the average turnaround time will be if the CPU is left idle for the first
13

14

Chapter 5 CPU Scheduling

1 unit and then SJF scheduling is used. Remember that processes P1 and P2 are waiting during this idle time, so their waiting time may increase. This algorithm could be known as future-knowledge scheduling. Answer: a. b. c. 10.53 9.53 6.86

Remember that turnaround time is finishing time minus arrival time, so you have to subtract the arrival times to compute the turnaround times. FCFS is 11 if you forget to subtract arrival time. 5.4 What

You May Also Find These Documents Helpful

  • Good Essays

    WGU JGT Task #1

    • 1134 Words
    • 5 Pages

    Catherine Pang provided the assembly schedule which denotes cycle time which is the maximum amount of time the boot is allowed to spend at each workstation. Upon initial inspection of the workflow, it is noted that a “bottleneck” is noted due to a variance between stations B and C (with a three minute difference) and stations E and F (with one minute difference). Both variances in sequential steps cause…

    • 1134 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 9 Final Paper

    • 1263 Words
    • 6 Pages

    Assuming 5 MDs on duty at an average (each with a service rate of 3.1 patients per hour) and that all patients (143 per day) see an MD, calculate the effect of a 4% increase in the arrival rate on the expected wait time in queue: Wq (use Queuing Formulas, assume uniform arrival across 10 working hours per day, note that it’s a multiple server system drawing from a single line – M/M/S). Comment on this…

    • 1263 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    M1 Week 3

    • 1315 Words
    • 6 Pages

    In order to find the minimum makespan for the two macines we can apply Johnson’sRule:…

    • 1315 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    14. You have just determined the actual number of workstations that will be used on an assembly line to be 6 using the assembly-line balancing procedure. The cycle time of the line is 5 minutes and the sum of all that tasks required on the line is 25 minutes. Which of the following is the correct value for the resulting line's efficiency?…

    • 1392 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    BSOP 429 Midterm Exam 1

    • 375 Words
    • 2 Pages

    7. (TCO 4) How much of total lead time is accounted for by queue time?…

    • 375 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The simulation provides a baseline of wait times that average 11 minutes. These lie far above the upper tolerance level for this simulation, as well as, for those in Figures 1 and 2 research.…

    • 920 Words
    • 4 Pages
    Good Essays
  • Better Essays

    ttl_tt/ i; printf("\n\n Average Waiting Time : %f",avg_wt); printf("\n Average Turnaround Time : %f",avg_tt); getch();…

    • 401 Words
    • 2 Pages
    Better Essays
  • Powerful Essays

    Manzana

    • 1120 Words
    • 5 Pages

    1) The TAT is based on calculating the time to complete the backlog and the new policies at the desk of…

    • 1120 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    “When I was at church they taught me something else/ If you preach hate at the service those words aren't anointed/ That holy water that you soak in has been poisoned/ When everyone else is more comfortable remaining voiceless/ Rather than fighting for humans that have had their rights stolen/ I might not be the same, but that's not important/…

    • 1105 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Southwest Airlines

    • 775 Words
    • 4 Pages

    Chapter 13 is titled “Scheduling Operations” and it is mainly about scheduling decisions for batch operations and how they deal with the allocation of scarce resources to jobs, activities, tasks, or customers. “Scheduling results in a time-phased plan, or schedule, of activities. The schedule indicates what is to be done, when, by whom, and with what equipment. Scheduling should be clearly differentiated from aggregate planning” (Schroeder, pg. 293).…

    • 775 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Dragonfly case study

    • 1041 Words
    • 5 Pages

    3. The Earliest Start (ES) and Earliest Finish (EF) and Latest Start (LS) and Latest Finish (LF) times are calculated using Forward Pass and Backward Pass Algorithm.…

    • 1041 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    Is Media Violence Harmful?

    • 2052 Words
    • 9 Pages

    The twenty-first century is the golden age of media. Following the widespread of technology in the late twentieth century, media has become a constant presence in people’s lives. New innovations in technology have led to blockbuster movies, music at the touch of our fingertips, weekly television programs and a vast array of video games available on various devices. With new consoles and devices constantly being released, everyone, no matter their age, can readily access media. However, over time, media has taken on a violent transformation. The games kids of past generations played such as Tetris and Pac-Man were soon replaced by violent video games like Call of Duty or Grand Theft Auto. The comical sitcoms of the…

    • 2052 Words
    • 9 Pages
    Better Essays
  • Good Essays

    Answer: There many factors can adversely impact turn-around time as SWA. The aircraft has to be served by the ground operations team for its next departure. The grounds operations team consists of a baggage transfer driver who has responsibility for getting connecting flight baggage the ground operations team consists of baggage transfer driver who has responsibility for getting connecting flight bags to baggage claim for passenger pick-up, a lavatory truck driver who handles restroom receptacle drainage, a lead gate to handle baggage carts and track incoming and outgoing bag counts, and a bin agent to manage baggage and cargo inside the plane. In the same time, the provisioning truck has to restock supplies such as drinks and snacks. The fuel truck has to load fuel to the airplane. If any unexpected thing happens during the maintenance, it might slow down the flow of operations. Meanwhile, if the passengers can deplane and enplane as schedule, it is another concern. Anything from weather delays to unexpected maintenance issue at the gate can slow down the flow of operations and adversely impact turn-around time.…

    • 1717 Words
    • 7 Pages
    Good Essays
  • Good Essays

    When you turn on the TV after coming home from school or work, what would you expect to see? A talk-show with an African-American woman talking about life stories, a show about babies running around in diapers that can talk (Rugrats) or one showing people killing each other? Most people would choose the first or the second, and that is the way TV is. During the afternoon when young children or teens are sitting around the TV, those are the shows that are aired, but it doesn't mean that the other types of shows showing violent or sexual acts can't be aired at all. Why can't both types of shows be on TV? If we have the freedom of speech, shouldn't we also have the freedom to watch what we want on TV? What you watch on TV is your choice and affects yourself. If it makes you act in a negative way, you are the one controlling those actions, not the networks that put shows like CSI, COPS, or Sex and the City on TV.…

    • 1270 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Benihana Operations Case

    • 500 Words
    • 2 Pages

    It takes 60 minutes for one customer to eat dinner, and there are 112 seats in the dining area. Therefore 112 people eat every 60 minutes (throughput). On average a dinner cycle is completed every 60 minutes/112 people = 32 seconds per person (cycle time). We know that dinners are processed in batches of 8, so on the average a table of 8 finishes every 256 seconds…

    • 500 Words
    • 2 Pages
    Satisfactory Essays