Preview

Bca Cs-63

Powerful Essays
Open Document
Open Document
1608 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Bca Cs-63
ca cs-63-------------------------------------------------
CS-63 Solved Assignment 2012
-------------------------------------------------
Presented by http://www.myignou.in
-------------------------------------------------
Solved by Pradeep Kumar Rana, a student of IGNOU BCA 6th semester. His facebook URL= http://www.facebook.com/people/Pradeep-Rana/100001389169424

Course Code : CS-63
Course Title : Introduction to System Software
Assignment Number : BCA (3)-63/Assignment/2012
Maximum Marks : 25
Last Date of Submission : 30th April, 2012/30th October, 2012

There are seven questions in this Assignment. Answer all the questions. You may use illustrations and diagrams to enhance explanation.

1) Consider the following set of processes that arrive in the ready queue at the same time:

Process CPU time P1 2 P2 5 P3 2 P4 1 P5 4 Consider the following scheduling algorithms:

First Come First Serve (FCFS), Shortest job first (SJF) and Round Robin (quantum = 1)
What is the turnaround time of each process for each of the above scheduling algorithms?
What is the waiting time of each process for each of the above scheduling algorithms? (3 Marks) ANS:-FCFS (first come first serve) Process | CPU time | Waiting time | Turn around time=CPU time+w.t | P1 | 2 | 0 | 2 | P2 | 5 | 2 | 7 | P3 | 2 | 7 | 9 | P4 | 1 | 9 | 10 | P5 | 4 | 10 | 14 | TOTAL | 14 | 28 | 42 |

Average waiting time=28/5=5.6
Average turn@time=42/5=8.4

SJS(Shrtage job first)

Process | CPU time | Waiting time | Turn around time=CPU time+w.t | P1 | 1 | 0 | 1 | P2 | 2 | 1 | 3 | P3 | 2 | 3 | 5 | P4 | 4 | 7 | 11 | P5 | 5 | 13 | 18 | TOTAL | 14 | 24 | 38 |
Average waiting time=24/5=4.8
Average turn@time=38/5=7.6

Round robin scheduling,

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
  • 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
  • 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

    Ops 571 Bottlenecks

    • 701 Words
    • 3 Pages

    Each step takes a certain amount of time to complete; in order to get the proper amount of sleep and to be able to complete all the steps in the process, a collection of data had to be collected over the past several weeks. The collection of data showed the average amount of complete the entire process was roughly one and a half hours. After taking a look at the amount of time it took to complete each task identifying the bottlenecks in the process became clear.…

    • 701 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Answer the following questions using the information gathered in the textbook. Please answer on a SEPARATE sheet of paper. Assignment will NOT be accepted if typed, or answered on this sheet of paper. Please PRINT this and attach to answers.…

    • 436 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In this document of BCOM 230 Week 5 Individual Assignment you will find the next information:…

    • 454 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Econ 312 Week 4 Assignment 2

    • 3362 Words
    • 14 Pages

    A consumer prefers market basket A to market basket B, and prefers market basket B to market basket C. Therefore, A is preferred to C. The assumption that leads to this conclusion is:…

    • 3362 Words
    • 14 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 4 Solutions

    • 473 Words
    • 2 Pages

    (g) We have to achieve a cycle time of 3600/72=50 seconds/unit. The following task allocation…

    • 473 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Evolab Guppies

    • 1177 Words
    • 5 Pages

    Upper West: This is a similar distribution to the one I made. Although it is a smaller sample the distribution is similar.…

    • 1177 Words
    • 5 Pages
    Satisfactory 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
  • Good Essays

    c. We think 20-30 minutes would be a reasonable definition of delay because there shouldn’t be delay costs associated with delays under 30 minutes because it’s not a lot of time.…

    • 1623 Words
    • 7 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
  • Good Essays

    Knock Detecting Door Lock

    • 1314 Words
    • 6 Pages

    As mentioned in Introduction first we identified the need of a door locking system that reacts to knocking.…

    • 1314 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Os Deadlocks

    • 450 Words
    • 2 Pages

    Compute the Need Matrix. Is the system safe? If so, show the order in which all processes can complete. If the system is not safe, explain.…

    • 450 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    *(++) Gelation immediate remains for 12 hours, (+++) Gelation immediate remains for more than 12 hours…

    • 939 Words
    • 4 Pages
    Satisfactory Essays