answersLogoWhite

0

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.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What relation holds between priority and shortest job first algorithm?

what is the diffrnce


What is the relation of SJF scheduling to priority scheduling?

Shortest Job First (SJF) scheduling and priority scheduling are both CPU scheduling algorithms used in operating systems to manage process execution. SJF selects processes based on the shortest estimated execution time, while priority scheduling selects processes based on their assigned priority levels. In some cases, SJF can be viewed as a specific type of priority scheduling where the priority is inversely related to the job length—the shorter the job, the higher its priority. Thus, both approaches aim to optimize CPU utilization but differ in the criteria they use for process selection.


What relation holds between priority and first come first serve algorithm?

In scheduling algorithms, the priority method assigns tasks based on their importance, while the First-Come, First-Serve (FCFS) algorithm processes tasks in the order they arrive, regardless of priority. This means that in FCFS, a lower-priority task can delay a higher-priority one if it arrives first. Consequently, the two algorithms can lead to different performance outcomes, particularly in terms of response time and overall system efficiency. In contrast, priority scheduling aims to minimize wait times for high-priority tasks, potentially at the cost of lower-priority ones.


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).


How many types of scheduling?

There are several types of scheduling used in various fields, but the most common include: First-Come, First-Served (FCFS): Processes are scheduled in the order they arrive. Round Robin (RR): Each process is assigned a fixed time slice in a cyclic order. Priority Scheduling: Processes are scheduled based on priority levels, with higher priority tasks executed first. Shortest Job Next (SJN): The process with the shortest execution time is scheduled next. Each type has its own advantages and is suited for different scenarios.


When was First Priority created?

First Priority was created in 1996.


Is there any relation between first national bank and financier?

no


A sentence for priority?

my dogs first priority is food.


What is the difference between a priority queue and a circular queue?

A circular queue is similar to the normal queue with the difference that queue is circular queue ; that is pointer rear can point to beginning of the queue when it reaches at the end of the queue. A priority queue is a queue in which each element is inserted or deleted on the basis of their priority. A higher priority element is added first before any lower priority element. If in case priority of two element is same then they are added to the queue on FCFS basis (first come first serve).


Who is the first discovered the relation between motion and force?

the answer is sir. isaac newton galileo galilei explained only the relation between motion and force


What is the difference between First class shipping and Priority Shipping?

First-class shipping is a standard mail class offered by the USPS that is typically used for smaller, lightweight packages. Priority shipping is a faster mail class that offers expedited delivery and includes features like tracking and insurance. Priority shipping is generally more expensive than first-class shipping.


What is the Programming code for shortest job first?

What is the Programming code for shortest job first?

Trending Questions
What does it mean when you have a guy friend you like but not sure if he like you you and him havent talked in 1 year and you make lots of eye contact? What does it mean when a woman shakes her keys at her front door? What relation is your aunts cousin to you? How can I tell if the girl I'm with loves someone else? What do you say when people feel sorry for because you have two boys? How could a girl make a boy love her? Is Hope the daughter of Dahak? How old do you half to be to babysit? What does a 13 year old boy do when he has a girlfriend and another girl loves him? What is a life-skill? What does it mean if your boyfriend didn't call last night wen he said he would and usle does. and came to see me in morning is he gliuty or does he love me? What does it mean when my partner get mad he starts punching things and lashing out he says you wind him up which you dont he just goes mad? What should a good wife act to her husband? Does al freeman jr have any siblings? What doest it mean if a man is attracted to you but does not approach you? How soon is too soon to mess around with your boyfriend? How do you find if my husband has already married to another girl? What does it mean when a guy says not to look at him because you make him feel weird and to make it sound crazier everytime he sees me he always makes silly jokes and goofy faces? Can you save your relationship if your partner leaves you with no warning and refuses all contact and you never had any idea that anything was wrong? I am a married woman in love with a married man he is resisting you you have long periods of ignoring each other giving each other the cold shoulder then you become weak return again what 2 do?