answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What is the relation of SJF scheduling to priority scheduling?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Priority scheduling positive and negative points?

disadvantages of priority scheduling


What is priority scheduling algorithm?

The priority scheduling algorithm is a kind of CPU scheduling algorithm where the processes that wait for the CPU are scheduled according to their priority..


Advantage and disadvantage of priority scheduling?

Advantages of Priority Scheduling-1.Simplicity.2.Reasonable support for priority.3.Suitable for applications with varying time and resource requirements.Disadvantages of Priority Scheduling-1.Indefinite blocking or starvation.2.A priority scheduling can leave some low priority waiting processes indefinitely for CPU.3.If the system eventually crashes then all unfinished low priority processes gets lost.


What relation between priority and shortest job first?

In that work system, the shortest job gets higher priority because more gets accomplished in any amount of time. If you have two hours to do 4 tasks and one task will take five minutes, one will take 30 minutes, one will take an hour and one will take an hour and a half, by using the shortest job first method, you will accomplish three tasks in those two hours and part of the fourth task. If you do the longest job first, you will accomplish the task that takes an hour and a half, then only part of the one hour task, but nothing on the 5 minute or 30 minute tasks. That means that by doing the shortest jobs first, you will accomplish three times as many tasks as you will by doing the longest jobs first.


What will happen if two processes are having same priority in priority scheduling?

In priority scheduling, if two processes have the same priority, some operating systems may use a secondary criteria, such as time since last execution or process ID, to determine the order in which they are executed. Alternatively, the operating system may use a first-come-first-serve basis for scheduling processes with the same priority.


Is it possible to implement more than one CPU scheduling Algorithms on one OS?

Yes. For Example, many operating systems have two schedulers, one for high priority\realtime processes such as gui elements and another for low priority\background processes. The high priority\gui scheduler will usually use a scheme such as SRTF (shortest remaining time first) or SJF (shortest job first), while the low priority\background scheduler may use a scheme such as RR (round robin).


What scheduling algo is used for real time OS?

Cooperative schedulingPreemptive scheduling Rate-monotonic schedulingRound-robin schedulingFixed priority pre-emptive scheduling, an implementation of preemptive time slicingFixed-Priority Scheduling with Deferred PreemptionFixed-Priority Non-preemptive SchedulingCritical section preemptive schedulingStatic time schedulingEarliest Deadline First approachStochastic digraphs with multi-threaded graph traversal


Example of preemptive sjf scheduling?

find primitive sjf? with avg waiting time and TAW? P Bust TIme Arivel time p1 5 1 p2 3 0 p3 2 2 p4 4 3 p5 8 2


Which is one of pre-emptive scheduling algorithm?

Priority based algorithm


What scheduling algorithm is used in Linux?

Linux usually uses a pre-emptive scheduler, which means a process will run until either it makes a system call, or its time slice runs out. This is as opposed to a cooperative scheduler, which allows a process to run until it deems itself ready to go from running to ready state. Needless to say, preemption is a much better model, keeping misbehaving processes from starving other processes of CPU time.


How do you decide what gets top priority when scheduling time?

it depends what is critical to meet deadline.


How do you decide what gets top priority when scheduling your time?

it depends what is critical to meet deadline.