Share to: share facebook share twitter share wa share telegram print page

Starvation (computer science)

In computer science, resource starvation is a problem encountered in concurrent computing where a process is perpetually denied necessary resources to process its work.[1] Starvation may be caused by errors in a scheduling or mutual exclusion algorithm, but can also be caused by resource leaks, and can be intentionally caused via a denial-of-service attack such as a fork bomb.

When starvation is impossible in a concurrent algorithm, the algorithm is called starvation-free, lockout-freed[2] or said to have finite bypass.[3] This property is an instance of liveness, and is one of the two requirements for any mutual exclusion algorithm; the other being correctness. The name "finite bypass" means that any process (concurrent part) of the algorithm is bypassed at most a finite number times before being allowed access to the shared resource.[3]

Scheduling

Starvation is usually caused by an overly simplistic scheduling algorithm. For example, if a (poorly designed) multi-tasking system always switches between the first two tasks while a third never gets to run, then the third task is being starved of CPU time. The scheduling algorithm, which is part of the kernel, is supposed to allocate resources equitably; that is, the algorithm should allocate resources so that no process perpetually lacks necessary resources.

Many operating system schedulers employ the concept of process priority. A high priority process A will run before a low priority process B. If the high priority process (process A) blocks and never yields, the low priority process (B) will (in some systems) never be scheduled—it will experience starvation. If there is an even higher priority process X, which is dependent on a result from process B, then process X might never finish, even though it is the most important process in the system. This condition is called a priority inversion. Modern scheduling algorithms normally contain code to guarantee that all processes will receive a minimum amount of each important resource (most often CPU time) in order to prevent any process from being subjected to starvation.

In computer networks, especially wireless networks, scheduling algorithms may suffer from scheduling starvation. An example is maximum throughput scheduling.

Starvation is normally caused by deadlock in that it causes a process to freeze. Two or more processes become deadlocked when each of them is doing nothing while waiting for a resource occupied by another program in the same set. On the other hand, a process is in starvation when it is waiting for a resource that is continuously given to other processes. Starvation-freedom is a stronger guarantee than the absence of deadlock: a mutual exclusion algorithm that must choose to allow one of two processes into a critical section and picks one arbitrarily is deadlock-free, but not starvation-free.[3]

A possible solution to starvation is to use a scheduling algorithm with priority queue that also uses the aging technique. Aging is a technique of gradually increasing the priority of processes that wait in the system for a long time.[4]

See also

References

  1. ^ Tanenbaum, Andrew (2001). Modern Operating Systems. Prentice Hall. pp. 184–185. ISBN 0-13-092641-8.
  2. ^ Herlihy, Maurice; Shavit, Nir (2012). The Art of Multiprocessor Programming. Elsevier. p. 24. ISBN 9780123977953.
  3. ^ a b c Raynal, Michel (2012). Concurrent Programming: Algorithms, Principles, and Foundations. Springer Science & Business Media. pp. 10–11. ISBN 978-3642320279.
  4. ^ Galvin, Peter (2010). Operating System Concepts. Wiley India Edition. p. 193. ISBN 978-81-265-2051-0.

Read other articles:

Lee Yong 2023Informasi pribadiNama lengkap Lee YongTanggal lahir 24 Oktober 1986 (umur 37)Tempat lahir Ulsan, Korea SelatanTinggi 180 cm (5 ft 11 in)Posisi bermain BekInformasi klubKlub saat ini Jeonbuk Hyundai MotorsNomor 2Karier senior*Tahun Tim Tampil (Gol)2017 – Jeonbuk Hyundai Motors 8 (0)Tim nasional2013 – Korea Selatan 31 (0) * Penampilan dan gol di klub senior hanya dihitung dari liga domestik Lee Yong (lahir 24 Oktober 1986) adalah seorang pemain sepak bola berke…

Pour des articles plus généraux, voir Institut d'administration des entreprises et Université Paris 1 Panthéon-Sorbonne. Institut d'administration des entreprises de ParisHistoireFondation 1956StatutType Institut d'administration des entreprisesForme juridique Autre établissement public national d'enseignement (d)Fondateur Gaston BergerSite web www.iae-paris.comChiffres-clésÉtudiants 1 425 (2007)LocalisationPays FranceLocalisation Parismodifier - modifier le code - modifier Wikidata …

Georgia gubernatorial election 1855 Georgia gubernatorial election ← 1853 1 October 1855 1857 →   Nominee Herschel V. Johnson Garnett Andrews[a] B. H. Overby Party Democratic Know Nothing Temperance Popular vote 54,136 43,358 6,331 Percentage 52.14% 41.76% 6.10% Results by County[2]Johnson:      40–50%      50–60%      60–70%      70–80% …

Christian Wilhelmsson Informasi pribadiNama lengkap Christian Ulf WilhelmssonTanggal lahir 08 Desember 1979 (umur 44)Tempat lahir Malmö, SwediaTinggi 1,77 m (5 ft 9+1⁄2 in)Posisi bermain GelandangInformasi klubKlub saat ini Baniyas SCNomor 99Karier junior1988–1997 MjällbyKarier senior*Tahun Tim Tampil (Gol)1997–2000 Mjällby 52 (11)2000–2003 Stabæk 84 (25)2003–2006 Anderlecht 90 (14)2006–2008 Nantes 13 (0)2007 → Roma (pinjam) 19 (1)2007–2008 → Bolton …

WomanPoster teatrikalNama lainHangul여 Hanja女 Alih Aksara yang DisempurnakanYeoMcCune–ReischauerYŏ SutradaraKim Ki-young[1]Jung Jin-wooYu Hyun-mokProduserPark Gwan-sikDitulis olehLee Eun-seongKim Seung-okKim Ki-youngPemeranShin Seong-il Moon HeePenata musikHan Sang-kiSinematograferJang Seok-junSon Hyeon-chaeChoe Ho-jinPenyuntingKim Hee-suDistributorKorea Art Movie Co., Ltd.Tanggal rilis 23 Desember 1968 (1968-12-23) Durasi100 menitNegaraKorea SelatanBahasaKorea Wom…

Pembangunan nasional Indonesia adalah paradigma Pembangunan yang terbangun atas pengamalan Pancasila yaitu pembangunan manusia Indonesia seutuhnya dan pembangunan masyarakat Indonesia seluruhnya, dengan Pancasila sebagai dasar, tujuan, dan pedomannya.[1] Dari amanat tersebut disadari bahwa pembangunan ekonomi bukan semata-mata proses ekonomi, tetapi suatu penjelmaan pula dari proses perubahan politik, sosial, dan budaya yang meliputi bangsa, di dalam kebulatannya.[1] Pembangunan …

بُخَارَى Buxoro / Буҳоро مدرسة مير عرب تقسيم إداري البلد  أوزبكستان[1] عاصمة لـ الدولة السامانيةولاية بخارى (15 يناير 1938–)إمارة بخارى (1753–7 أكتوبر 1920)جمهورية بخارى الشعبية السوفيتية (8 أكتوبر 1920–27 أكتوبر 1924)جمهورية أوزبكستان الاشتراكية السوفيتية (28 أكتوبر 1924–1925)  التقس…

Coralie Balmy Coralie Balmy lors des championnats de France de natation en petit bassin 2011. Informations Nages Nage libre Nationalité Française Naissance 2 juin 1987 (36 ans) Lieu La Trinité (Martinique) Taille 1,80 m Club Montpellier Université Club Records Petit bassin 200 m nl : 1 min 53 s 18800 m nl : 8 min 5 s 32. Palmarès Médailles obtenues Jeux olympiques 1 Ch. du monde grand bassin 1 Ch. du monde petit bassin 1…

1989 film by John Frankenheimer Dead BangTheatrical release posterDirected byJohn FrankenheimerWritten byRobert FosterProduced byStephen J. RothRobert L. RosenStarring Don Johnson Penelope Ann Miller William Forsythe Bob Balaban Tim Reid CinematographyGerry FisherEdited byRobert F. ShugrueMusic byGary ChangProductioncompanyLorimar Film Entertainment[1]Distributed byWarner Bros.[1]Release date March 24, 1989 (1989-03-24) (United States) Running time105 minutes&#…

Singaporean musical cabaret trio This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Dim Sum Dollies – news · newspapers · books · scholar · JSTOR (April 2007) (Learn how and when to remove this message) Dim Sum DolliesThe Dim Sum Dollies show Dim Sum Dollies: The History of Singapore Part 2 at the Esplanade Theatr…

Italian manufacturer For the road bicycle racing team, see Saeco (cycling team). SaecoCompany typePrivateIndustryHome appliancesFoundedGaggio Montano, Italy, 1981; 43 years ago (1981)FounderSergio Zappella and Arthur SchmedHeadquartersGaggio Montano, ItalyArea servedWorldwideProductsEspresso machinesParentEvoca Group, Philips The Saeco AuLika professional machine. The Saeco Conica Coffee grinder - Coffeemill. Philips Saeco S.p.A., or short Saeco, is an Italian manufacturer of m…

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: コルク – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2017年4月) コルクを打ち抜いて作った瓶の栓 コルク(木栓、蘭&…

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: コルク – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2017年4月) コルクを打ち抜いて作った瓶の栓 コルク(木栓、蘭&…

American baseball player, coach, manager, and scout Baseball player Wes WestrumWestrum with the New York Giants in 1955Catcher / ManagerBorn: (1922-11-28)November 28, 1922Clearbrook, Minnesota, U.S.Died: May 28, 2002(2002-05-28) (aged 79)Clearbrook, Minnesota, U.S.Batted: RightThrew: RightMLB debutSeptember 17, 1947, for the New York GiantsLast MLB appearanceSeptember 29, 1957, for the New York GiantsMLB statisticsBatting average.217Home runs96Runs batted in315…

Pour les articles homonymes, voir Feyerabend. Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne cite pas suffisamment ses sources (janvier 2010). Si vous disposez d'ouvrages ou d'articles de référence ou si vous connaissez des sites web de qualité traitant du thème abordé ici, merci de compléter l'article en donnant les références utiles à sa vérifiabilité et en les liant à la section « Notes et références ». En pratique…

坐标:43°11′38″N 71°34′21″W / 43.1938516°N 71.5723953°W / 43.1938516; -71.5723953 此條目需要补充更多来源。 (2017年5月21日)请协助補充多方面可靠来源以改善这篇条目,无法查证的内容可能會因為异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:新罕布什尔州 — 网页、新闻、书籍、学术、图像),以检查网络上是否存在该主题的更多可靠来源(…

Salute to the monarch A formal occasion at St John's College, Cambridge, where, beneath the Royal Coat of Arms of the United Kingdom, the loyal toast would be given. A dinner hosted by John Craig Eaton at the King Edward Hotel in Toronto in 1919; the loyal toast would have been given to King George V. Royal Navy officers in a wardroom seated toasting the King, from a series titled 'The Royal Navy during the Second World War'. A loyal toast is a salute given to the sovereign monarch or head of st…

Державний комітет телебачення і радіомовлення України (Держкомтелерадіо) Приміщення комітетуЗагальна інформаціяКраїна  УкраїнаДата створення 2003Керівне відомство Кабінет Міністрів УкраїниРічний бюджет 1 964 898 500 ₴[1]Голова Олег НаливайкоПідвідомчі орг…

Voce principale: Attentato al Pentagono dell'11 settembre 2001. Le teorie del complotto sull'attentato al Pentagono dell'11 settembre 2001 sono una serie di teorie del complotto che sostengono come argomento centrale il fatto che l'attentato al Pentagono dell'11 settembre 2001 sia da imputare a soggetti diversi dal terrorismo islamico. Dopo l'11 settembre sono stati pubblicati diversi saggi, articoli e documentari, spesso con fini commerciali, con lo scopo di discutere ipotetiche incongruenze ne…

2004 Indian filmNetaji Subhas Chandra Bose: The Forgotten HeroDirected byShyam BenegalWritten byAtul TiwariShama ZaidiProduced byRaj PiusBarbara von WrangellStarringSachin KhedekarKulbhushan KharbandaRajit KapurDivya DuttaArif ZakariaCinematographyRajan KothariEdited byAseem SinhaMusic byA. R. RahmanDistributed bySahara India Media Communication Ltd.Release dates 3 November 2004 (2004-11-03) (London Film Festival) 13 May 2005 (2005-05-13) (India) Running tim…

Kembali kehalaman sebelumnya