Question
Consider three processes P1, P2, and P3 with burst times
10, 5, and 8 respectively. All arrive at time 0. Using the Shortest Job First (SJF) non-preemptive scheduling algorithm, what is the average waiting time?Solution
Processes: P1 (10), P2 (5), P3 (8) Â Â Â Â Â Â Order of execution (SJF non-preemptive): P2, P3, P1 Â Â Â Â Â Â P2: Starts at 0, finishes at 5. Waiting time = 0. Â Â Â Â Â Â P3: Starts at 5, finishes at 13. Waiting time = 5. Â Â Â Â Â Â P1: Starts at 13, finishes at 23. Waiting time = 13. Â Â Â Â Â Â Total waiting time = 0 + 5 + 13 = 18 Â Â Â Â Â Â Average waiting time = 18 / 3 = 6.0
The average of twelve numbers is 45.5. The average of the first four numbers is 41.5 and that of the next five numbers is 48. The 10th number...
A mixture contains oil and water in the ratio 7:5. When 70% of this mixture is replaced with 153 litres of water, the ratio becomes 8: 13. Than, what wi...
Out of 4 numbers, the average of first 3 is 19 and last 3 is 20. If the last number is 21. Find the first number?
The average age of three children is 21 years. If their ages are in the ratio 3:5:6. Find the age of the youngest child.
Average age of company A is 21 years and average age of both companies A and B is 13 years. If the ratio of number of employees in company A and B is 3:...
- The average age of (x + 1) students of a class is 20 years. If the 50 years old class teacher is also included then average age of the class gets increased...
- Salaries of M, N and O are in the proportion 4:6:5. Their average salary is Rs. 18,000. If M spends 50% of salary, N spends 60%, and O spends 70%, find the...
In a cricket match the captain of one of a team scored 24 runs more than the average runs scored by the remaining 7 batsmen of that team who batted in t...
10.5, 19, 40, 82, 166, 334
A student has two types of markers: Marker A priced at $3 each and Marker B priced at $5 each. If the student purchases a total of 12 markers, with an a...