Preview

Operating System Concept

Good Essays
Open Document
Open Document
676 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Operating System Concept
Process | Arrival Time | Burst time | Priority | P1 | 0 | 3 | 3 | P2 | 1 | 6 | 1 | P3 | 3 | 9 | 3 | P4 | 6 | 1 | 2 | P5 | 10 | 6 | 4 | P6 | 15 | 7 | 2 |

For Shortest-Job-First without preemption: (ignore the priority column, given above, for this one, priority is used in the non-preemptive priority algorithm) Check the arrival times. P1 arrives at time = 0, and its burst time is time = 3, so P1 will complete its execution at time = 3, because it starts at time = 0 and its burst time is time = 3, it will create a total time = 0 + 3 = 3 (running total 1).
In that time, if you look at the arrival times, in the arrival time column above, P2 arrives at time = 1, but P3 also arrives at time = 3, and by this time P1 has finished executing, so you look at both P2 and P3, and you start executing the process with the shorter burst time, which is P2 with a time = 6. So P2 will run until it has finished its execution, its burst time = 6. You add this burst time = 6 onto the total which was calculated above when P1 was executed (which was time = 3), so the new total is time = 3 + 6 = 9 (running total 2).

Now, with executing up to time = 9 so far, you look through the list of arrival times in the arrival column above, you will see that not only is P3 ready but a shorter job, P4, arrived while P2 was executing as well, so among the two waiting processes, P4 will be chosen as its burst time is less, P3's burst time = 9, whereas P4's burst time is only 1, this is why it is called shortest-Job-First scheduling algorithm, it looks at the arrival times, and compares the jobs it has waiting, and chooses the job with the shortest burst length. If you add P4's burst time to the running total (time = 9), the new total execution time is, time = 9 + 1 = 10 (running total 3).

If you look at the arrival times in the arrival column now, P5 arrives at time = 10 as well, so we must choose between the already waiting P3, and the newly arrived P5, by comparing their burst

You May Also Find These Documents Helpful

  • Good Essays

    Acct 505 Course Project

    • 596 Words
    • 3 Pages

    From the frequency distribution and pie chart, it is clear that the highest number of customers live in the rural area (42%), followed by customers who live in the suburban category (30%). There are only 28% of the customers living in the urban area.…

    • 596 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    M1 Week 3

    • 1315 Words
    • 6 Pages

    Step 4: If the smallest processing time is on the second machine, assign that job at the end of the sequence and eliminate the job.…

    • 1315 Words
    • 6 Pages
    Satisfactory Essays
  • Powerful Essays

    PROJ 586 Final Exam

    • 872 Words
    • 4 Pages

    12. (TCO C) Calculate the earliest start for Task B if its predecessor, Task A, finishes on day 3 and the duration of Task B is 2 days.…

    • 872 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Record your answer from Lab Exercise #1, Step 1, Question 3. What is the time lag (S-P) in hours:minutes:seconds?…

    • 1340 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 6

    • 690 Words
    • 3 Pages

    1. Run your model. Compare the queue statistics of the 3 processes with those obtained for Part C in the previous Lab. How have they changed and what conclusions can you draw? (Note the sums of all capacities for both cases are equivalent – 12 in each).…

    • 690 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Spmproject File

    • 667 Words
    • 3 Pages

    2. What is the maximum long-term achievable throughput rate of Receiving Plant #1? What factors affect this throughput rate?…

    • 667 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Based on the researched value of goods and services provided by the individual laptop computer vendors, an assessment can be made to layout vendor procurement consideration in reference to evaluation criteria and respective weight to the requirements. In this Benchmark, five vendors were reviewed and an individual value was determined as a raw score to each evaluation criteria entry. Vendors were evaluated based on product quality, product capabilities, known business experience, reputation and history, length of time the company has been in business, warranty terms, and estimated cost. Scores were based on a scale of one to five, with one being not very good and five being very good. Based on data collected, vendor consideration should be shown in order of preference in the following diagram.…

    • 979 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Kristen's Cookies

    • 491 Words
    • 2 Pages

    In this process the Step 3 & 4 have the longest processing time of 10 minutes which means this is the bottleneck in the process. We know that the bottleneck determines the maximum output of the process. The bottleneck time is also referred to as the cycle time.…

    • 491 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Stella can handle about ten customers per hour at her one-person comic book store. The customer arrival rate averages about six customers per hour. Stella is interested in knowing the operating characteristics of her single-channel, single-phase queuing system.…

    • 63 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Business Data Model

    • 3130 Words
    • 13 Pages

    What is the probability that a randomly selected order will require between two and three minutes?…

    • 3130 Words
    • 13 Pages
    Good Essays
  • Good Essays

    Littlefield Case Study

    • 875 Words
    • 4 Pages

    Before the simulation started, our team created a trend forecast, using the first 50 days of data, showing us that the bottleneck station was at Station 1. On day 50 of the simulation, my team, 1teamsf, decided to buy a second machine to sustain our $1,000 revenue per day and met our quoted lead time for producing and shipping receivers. On day 97, we changed Station 2’s scheduling rule to priority step 2. We noticed that the bottleneck was not just at station 1, but at all stations, and that buying a new machine would not be the right choice to make, but rather, changing the way in which the station’s processing is queued would be the better option. By doing this, we could produce all incoming kits with a priority enabling an even flow of kits to Station 3. At day 97, our team ranked first in the overall standing, and wanted to try to maintain this standing for the rest of the simulation.…

    • 875 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Travel and Tourism

    • 1938 Words
    • 8 Pages

    Be able to select, cost and provide information for leisure holidays to meet the needs of customers…

    • 1938 Words
    • 8 Pages
    Powerful Essays
  • Better Essays

    1. Assuming that the order contains a dozen of cookies, the time to take a rush order is the sum of cycle times for each activity: 0+6+2+9+1+0+5+2+1=26 min.…

    • 1117 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    hal case study

    • 436 Words
    • 2 Pages

    HAL, Inc. is a major manufacturer of computers and computer components. In one of their plants they made printed circuit boards (PCB’s), which were used by other plants in the company in a variety of computer products.…

    • 436 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Executive Shirt Company

    • 346 Words
    • 2 Pages

    In order to calculate cycle time, we know that cycle time of a process is the cycle time of its bottleneck operation. In the current process we are using a batch size of 60 and we are provided with the cycle time of each operation in the case (Exhibit-3). We can get the cycle time of each operation by dividing the time taken to complete one batch by the number of batches simultaneously worked upon in each operation (Detailed explanation given in Exhibit-1). This will give us the cycle time in minutes per shirt.…

    • 346 Words
    • 2 Pages
    Satisfactory Essays