Multilevel feedback queue

In computer science, a multilevel feedback queue is a scheduling algorithm. Scheduling algorithms are designed to have some process running at all times to keep the central processing unit (CPU) busy.[1] The multilevel feedback queue extends standard algorithms with the following design requirements:

  1. Separate processes into multiple ready queues based on their need for the processor.
  2. Give preference to processes with short CPU bursts.
  3. Give preference to processes with high I/O bursts. (I/O bound processes will sleep in the wait queue to give other processes CPU time.)

The multilevel feedback queue was first developed by Fernando J. Corbató (1962).[2] For this accomplishment, the Association for Computing Machinery awarded Corbató the Turing Award.[3]

Process scheduling

Whereas the multilevel queue algorithm keeps processes permanently assigned to their initial queue assignments, the multilevel feedback queue shifts processes between queues.[4] The shift is dependent upon the CPU bursts of prior time-slices.[5]

  • If a process uses too much CPU time, it will be moved to a lower-priority queue.
  • If a process is I/O-bound or an interactive process, it will be moved to a higher-priority queue.
  • If a process is waiting too long in a low-priority queue and starving, it will be aged to a higher-priority queue.

Algorithm

Multiple FIFO queues are used and the operation is as follows:

  1. A new process is inserted at the end (tail) of the top-level FIFO queue.
  2. At some stage the process reaches the head of the queue and is assigned the CPU.
  3. If the process is completed within the time slice of the given queue, it leaves the system.
  4. If the process voluntarily relinquishes control of the CPU, it leaves the queuing network, and when the process becomes ready again it is inserted at the tail of the same queue which it relinquished earlier.
  5. If the process uses all the quantum time, it is pre-empted and inserted at the end of the next lower-level queue. This next lower-level queue will have a time quantum that is more than that of the previous higher-level queue.
  6. This scheme will continue until the process completes or it reaches the base-level queue.
  • At the base level queue the processes circulate in round robin fashion until they complete and leave the system. Processes in the base level queue can also be scheduled on a first come first served basis.[6]
  • Optionally, if a process blocks for I/O, it is promoted one level, and placed at the end of the next-higher queue. This allows I/O bound processes to be favored by the scheduler and allows processes to escape the base-level queue.

For scheduling, the scheduler always starts picking up processes from the head of the highest-level queue. Only if the highest-level queue has become empty will the scheduler take up a process from the next lower-level queue. The same policy is implemented for picking up in the subsequent lower-level queues. Meanwhile, if a process comes into any of the higher-level queues, it will preempt a process in the lower-level queue.

Also, a new process is always inserted at the tail of the top-level queue with the assumption that it will complete in a short amount of time. Long processes will automatically sink to lower-level queues based on their time consumption and interactivity level. In the multilevel feedback queue a process is given just one chance to complete at a given queue level before it is forced down to a lower-level queue.

Scheduling parameters

In general, a multilevel feedback queue scheduler is defined by the following parameters:[6]

  • The number of queues.
  • The scheduling algorithm for each queue which can be different from FIFO.
  • The method used to determine when to promote a process to a higher priority queue.
  • The method used to determine when to demote a process to a lower-priority queue.
  • The method used to determine which queue a process will enter when that process needs service.

See also

References

  1. ^ Silberschatz, Abraham (1994). Operating System Concepts, Fourth Edition. Addison-Wesley. p. 131. ISBN 978-0-201-50480-4.
  2. ^ Corbató, Fernando J.; Merwin-Daggett, Marjorie; Daley, Robert C. (1962). "An experimental time-sharing system". Proceedings of the May 1-3, 1962, spring joint computer conference on - AIEE-IRE '62 (Spring). p. 335. doi:10.1145/1460833.1460871. S2CID 14363753.
  3. ^ Arpaci-Dusseau, Remzi H.; Arpaci-Dusseau, Andrea C. (2014). "Multi-level Feedback Queue". Operating Systems: Three Easy Pieces (PDF). Arpaci-Dusseau Books.
  4. ^ Silberschatz, Abraham (1994). Operating System Concepts, Fourth Edition. Addison-Wesley. p. 147. ISBN 978-0-201-50480-4.
  5. ^ Silberschatz, Abraham (1994). Operating System Concepts, Fourth Edition. Addison-Wesley. p. 148. ISBN 978-0-201-50480-4.
  6. ^ a b Silberschatz, Abraham; Galvin, Peter Baer; Gagne, Greg (2008). Operating system concepts (8th ed.). Hoboken, N.J.: Wiley. p. 198. ISBN 978-0470128725.

Read other articles:

2015 American filmFreaks of NatureTheatrical release posterDirected byRobbie PickeringWritten byOren UzielProduced byMatt TolmachStarring Nicholas Braun Mackenzie Davis Josh Fadem Joan Cusack Bob Odenkirk Patton Oswalt Ed Westwick Vanessa Hudgens Denis Leary CinematographyUta BriesewitzEdited byCraig AlpertMusic byFil EislerProductioncompanies Columbia Pictures LStar Capital Distributed bySony Pictures ReleasingRelease date October 30, 2015 (2015-10-30) Running time92 minutesCo...

 

Eurogreen Stadion Auf dem Bühl Stadionkulisse mit dem neu erbauten Vereinsheim im Hintergrund. Daten Ort Deutschland Betzdorf, Deutschland Koordinaten 50° 47′ 9,4″ N, 7° 51′ 44,7″ O50.785957.86242232Koordinaten: 50° 47′ 9,4″ N, 7° 51′ 44,7″ O Eigentümer Stadt Betzdorf Baubeginn Ende der 1930er Jahre Renovierungen nach dem Zweiten Weltkrieg, 1991/92 Erweiterungen 1981, 1991/92 Kapazität 2.500 bis 4.000 Spielflä...

 

Francisco Cruz Informações pessoais Nome completo Francisco Javier Cruz Jiménez Data de nascimento 24 de maio de 1966 (57 anos) Local de nascimento Cedral,  México Altura 1.73 m Apelido O Avô Informações profissionais Clube atual Aposentado Posição AtacanteTreinador Clubes profissionais Anos Clubes Jogos e gol(o)s 1984-19881988-19891992-19951995-19961996-19971997-199819991999 Monterrey Logroñés Tigres UANL Atlante CSKA Sófia Tigres UANL Monterrey Tigrillos de Saltil...

Vista aérea da Ilha das Ratas Ilha das Ratas é uma pequena ilha uruguaia. Tem aproximadamente 100 x 50 metros quadrados de área, localizada em região profunda da baía de Montevidéu, onde é possível apenas se navegar. É também chamada ilha Liberdade desde 1843, quando no transcurso da Guerra Grande, a esquadra comandada pelo almirante William Brown, que apoiava Manuel Oribe, foi expulsa dali pela esquadra do governo de Montevidéu, comandada por Giuseppe Garibaldi. Em diferentes per...

 

High Commissioner of Australia to Papua New GuineaIncumbentJon Philpsince 25 February 2020Department of Foreign Affairs and TradeStyleHis ExcellencyReports toMinister for Foreign AffairsResidenceWaigani, Port MoresbyNominatorPrime Minister of AustraliaAppointerGovernor General of AustraliaInaugural holderLes Johnson(as High Commissioner for the Territory of Papua and New Guinea)Formation1 December 1973WebsiteAustralian High Commission, Papua New Guinea The High Commissioner of Australia ...

 

Sébastien Roudet Informasi pribadiNama lengkap Sébastien RoudetTanggal lahir 16 Juni 1981 (umur 42)Tempat lahir Montluçon, PrancisTinggi 1,74 m (5 ft 8+1⁄2 in)Posisi bermain GelandangInformasi klubKlub saat ini SochauxNomor 18Karier junior LB ChâteaurouxKarier senior*Tahun Tim Tampil (Gol)1998–2004 Châteauroux 158 (27)2004–2006 Nice 53 (5)2006–2008 Valenciennes 60 (8)2008–2011 Lens 80 (9)2011– Sochaux 33 (4) * Penampilan dan gol di klub senior hanya di...

Technologist, author, and public domain advocate Carl MalamudCarl Malamud speaking at the UC Berkeley iSchool about (Re-)defining the public domain, October 17, 2007.Born (1959-07-02) July 2, 1959 (age 64)Known forPublic.Resource.OrgNotable workExploring the Internet, A World's FairAwards2009 EFF Pioneer Award Carl Malamud (born July 2, 1959) is an American technologist, author, and public domain advocate, known for his foundation Public.Resource.Org. He founded the Internet Multica...

 

Zanni character from the commedia dell'arte Scapino by Jacques Callot, 1619 Scapino or Scapin is a Zanni character from the commedia dell'arte. His name is related to the Italian word scappare (to escape) and his name translates to little escape artist in reference to his tendency to flee from fights, even those he himself begins. He has been dated to the last years of the 16th century, and his creation is sometimes credited to Niccolò Barbieri.[1] He is a Bergamo native, and was pop...

 

Trombonist Al Grey in a 2015 painting by Gwendolyn Lanier-Gardner This is an alphabetical list of jazz trombonists for whom Wikipedia has articles. This is a dynamic list and may never be able to satisfy particular standards for completeness. You can help by adding missing items with reliable sources. A–B Ray Anderson (born 1952) Troy Andrews (Trombone Shorty) David Baker (1931–2016) Dan Barrett (born 1955) Lucien Barbarin (1956–2020) Chris Barber (1930–2021) Conny Bauer (born 1943) J...

2011 video gameGreen Lantern: Rise of the ManhuntersXbox 360 and PlayStation 3 cover artDeveloper(s)Double Helix Games(non-Nintendo consoles)Griptonite Games[1](Nintendo versions)Publisher(s)Warner Bros. Interactive Entertainment[1]Director(s)David MsikaDesigner(s)Benjamin CholewinskiProgrammer(s)Carlos BustamanteArtist(s)David Robert DonatucciWriter(s)Marv Wolfman[2]Composer(s)Kaveh CohenMichael David NielsenPlatform(s)PlayStation 3, Xbox 360, Wii, Nintendo DS, Ninten...

 

Бублієнко Роман Володимирович  Солдат Загальна інформаціяНародження 25 квітня 1993(1993-04-25)Володарка, УкраїнаСмерть 1 лютого 2017(2017-02-01) (23 роки)Авдіївка, УкраїнаПсевдо БублікВійськова службаРоки служби 2012—2013, 2016—2017Приналежність  УкраїнаВид ЗС Сухопутні військаРід вій...

 

Indian media and entertainment company Reliance Entertainment Pvt LtdFormerlyReliance BIG Entertainment (2005–2009), BIG Pictures (2005–2009), Reliance BIG Pictures (2009–2010)[citation needed]TypeDivisionIndustryEntertainmentMass mediaFounded15 February 2005; 18 years ago (2005-02-15)HeadquartersMumbai, Maharashtra, IndiaArea servedWorldwideKey peopleAnil Ambani(Chairman)Tina Ambani (Director)ProductsFilmsWeb seriesAnimationDigitalGamingParentReliance Anil Dhi...

PausAdrianus VIAwal masa kepausan9 Januari 1522Akhir masa kepausan14 September 1523PendahuluLeo XPenerusKlemens VIIInformasi pribadiNama lahirAdrian Florisz DedelLahir2 Maret 1459Utrecht, BelandaMeninggal14 September 1523Roma, Italia Adrianus VI (2 Maret 1459 – 14 September 1523) adalah Paus yang menjabat sejak 9 Januari 1522 sampai 14 September 1523. Ia adalah satu-satunya orang berkebangsaan Belanda yang pernah memerintah di Tahta Petrus. Ia juga paus terakhir yang berasal d...

 

Socialist Republic of VietnamMinistry of Education and TrainingBộ Giáo dục và Đào tạoMinistry overviewFormed28 August 1945Preceding MinistryMinistry of Education and Fine Arts (1907-1945) Ministry of National Education (1945-1946) Ministry of Education (1946-1990) Ministry of Tertiary and Professional Secondary Education (1965-1988) Ministry of Tertiary, Professional Secondary and Vocational Education (1988-1990) Ministry of Education and Training (1990-present)JurisdictionGovernmen...

 

Страсбурзький собор Західний фасад 48°34′54″ пн. ш. 7°45′03″ сх. д. / 48.58166666669477252° пн. ш. 7.750833333361077493° сх. д. / 48.58166666669477252; 7.750833333361077493Координати: 48°34′54″ пн. ш. 7°45′03″ сх. д. / 48.58166666669477252° пн. ш. 7.750833333361077493° сх. д. / 4...

Species of mollusc Southern blue-ringed octopus Hapalochlaena maculosa in Blairgowrie, Victoria Conservation status Least Concern (IUCN 3.1) Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Mollusca Class: Cephalopoda Order: Octopoda Family: Octopodidae Genus: HapalochlaenaRobson, 1929 Species: H. maculosa Binomial name Hapalochlaena maculosa(Hoyle, 1883) The southern blue-ringed octopus (Hapalochlaena maculosa) is one of three (or perhaps four) highly venomous ...

 

Hendri SeptaWali Kota Padang ke-14PetahanaMulai menjabat 7 April 2021(Pelaksana Tugas: 25 Februari – 7 April 2021)GubernurMahyeldi AnsharullahWakilEkos Albar (2023)PendahuluMahyeldi AnsharullahWakil Wali Kota Padang ke-5Masa jabatan13 Mei 2019 – 25 Februari 2021GubernurIrwan PrayitnoWali KotaMahyeldi AnsharullahPendahuluEmzalmiPenggantiEkos AlbarAnggota Dewan Perwakilan Rakyat DaerahKota PadangMasa jabatan2009–2014 Informasi pribadiLahir6 September 1976 (umur 4...

 

Hungarian wrestler Ferenc TóthTóth (bottom) vs. Olle Anderberg at the 1948 OlympicsPersonal informationBornFebruary 8, 1909[1]Szeged, Hungary[2]DiedFebruary 26, 1981 (aged 72)Budapest, HungarySportSportWrestlingClubÚjpesti TE Medal record Representing  Hungary Greco-Roman wrestling Olympic Games 1948 London -62 kg European Wrestling Championships 1934 Rome -61 kg 1939 Oslo -61 kg 1947 Prague -62 kg Freestyle wrestling European Wrestling Championships 1933 Paris -61 kg ...

This article is about the school in Hong Kong. For the school in Canada, see St. Paul Secondary School. For the school in Australia, see St Paul's International College. For the school in Ghana, see St. Paul's Senior High School. Not to be confused with St. Paul's Convent School or St. Paul's School (Lam Tin). This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: St. Paul's Secondary School...

 

In Greek mythology, Hippolochus (Ancient Greek: Ἱππολόχoς Hippolokhos) may refer to two distinct characters: Hippolochus, a Lycian prince as son of Bellerophon[1] and father of Glaucus, one of the Trojan Leaders.[2] Hippolochus, a Trojan soldier and son of Antimachus.[3] Notes ^ Homer, Iliad 6.196–197; Apollodorus, 2.3.1 ^ Homer, Iliad 6.119, 144 & 206, 7.13, 12.309 & 387, 14.140; Apollodorus, Epitome 3.35 ^ Homer, Iliad 11.122 References Apollodorus...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!