Presentation is loading. Please wait.

Presentation is loading. Please wait.

Team Project 1 Dr. Sunny Jeong & M.H. Park. Priority Scheduling Define your own priority, at least two According to each priority, implements suitable.

Similar presentations


Presentation on theme: "Team Project 1 Dr. Sunny Jeong & M.H. Park. Priority Scheduling Define your own priority, at least two According to each priority, implements suitable."— Presentation transcript:

1 Team Project 1 Dr. Sunny Jeong & M.H. Park

2 Priority Scheduling Define your own priority, at least two According to each priority, implements suitable Priority scheduling algorithm If possible, please use JAVA to implement it and use the concept of Thread –Each Thread corresponding to each algorithm –And base on the scheduling criteria to choose best one You can choose one or two of the criteria Date : Dec 7, 6 : 00p.m. You can find all the information from this notes

3 Priority Scheduling A priority number (integer) is associated with each process the process with the highest priority is scheduled Equal-Priority processes are scheduled in FCFS order. An SJF algorithm is simply a priority algorithm where the priority is the inverse of the (predicted) next CPU burst. –That is, the longer the CPU burst, the lower the priority and vice versa. –The shortest-Job-First (SJF) algorithm is a special case of general priority scheduling algorithm.

4 Priority type? Priority can be defined either internally or externally. Internally defined priorities use some measurable quantities or qualities to compute priority of a process. Examples of Internal priorities are –Time limits. –Memory requirements. –File requirements, for example, number of open files. –CPU Vs I/O requirements.

5 Priority type? Externally defined priorities are set by criteria that are external to operating system such as –The importance of process. –Type or amount of funds being paid for computer use. –The department sponsoring the work. –Politics.

6 Priority Scheduling Priority Scheduling Types –A preemptive priority algorithm will preemptive the CPU if the priority of the newly arrival process is higher than the priority of the currently running process. –A non-preemptive priority algorithm will simply put the new process at the head of the ready queue

7 Scheduling Criteria CPU utilization – keep the CPU as busy as possible Throughput – # of processes that complete their execution per time unit Turnaround time – amount of time to execute a particular process Waiting time – amount of time a process has been waiting in the ready queue Response time – amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment)

8 Priority scheduling problem A major problem with priority scheduling is indefinite blocking or starvation. A solution to the problem of indefinite blockage of the low- priority process is aging. Aging is a technique of gradually increasing the priority of processes that wait in the system for a long period of time


Download ppt "Team Project 1 Dr. Sunny Jeong & M.H. Park. Priority Scheduling Define your own priority, at least two According to each priority, implements suitable."

Similar presentations


Ads by Google