CSC 4320 6320 (Computer Numbers 1289 1293)(2) by pptfiles

VIEWS: 5 PAGES: 1

									                                     Assignment #2
                            CSc 4230/6320 Operating Systems

                Email it to yzhang@cs.gsu.edu by 2/15/2011 (Tuesday)
                      (note: email subject is OS Assignment #2,
                          attached filename is your-name.doc)

    Goal: Learn how to solve new problems using the new knowledge independently

   1. (100 points) (CSc 4320, Undergraduate Students):
    Three processes P1, P2 and P3 with related information are given in the following table
(Note: The larger a priority number, the higher the priority):
                Process       Burst Time (ms)       Priority    Arrival Time (ms)
                   P1                 10               1                  0
                   P2                 20               2                  5
                   P3                 40               3                 10
Please use the preemptive priority scheduling algorithm to schedule the three processes, and
calculate the waiting times of P1, P2 and P3.



   2. (100 points) (CSc 6320, Graduate Students):
     Three processes P1, P2 and P3 with related information are given in the following table
(Note: The larger a priority number, the higher the priority):
                Process       Burst Time (ms)         Priority     Arrival Time (ms)
                  P1                  10                 1                  0
                  P2                  T                  2                  5
                  P3                  40                 3                 15
T is an integer (T>0). Please use the preemptive priority scheduling algorithm, and calculate the
waiting times of P1, P2 and P3 for different cases in terms of T.

								
To top