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

Process control block

A process control block (PCB), also sometimes called a process descriptor, is a data structure used by a computer operating system to store all the information about a process.

When a process is created (initialized or installed), the operating system creates a corresponding process control block, which specifies and tracks the process state (i.e. new, ready, running, waiting or terminated). Since it is used to track process information, the PCB plays a key role in context switching.[1]

An operating system kernel stores PCBs in a process table.[2]

The current working directory of a process is one of the properties that the kernel stores in the process's PCB.[3]

Role

The role of the PCBs is central in process management: they are accessed and/or modified by most utilities, particularly those involved with scheduling and resource management.

Structure

In multitasking operating systems, the PCB stores data needed for correct and efficient process management.[4] Though the details of these structures are system-dependent, common elements fall in three main categories:

  • Process identification
  • Process state
  • Process control

Status tables exist for each relevant entity, like describing memory, I/O devices, files and processes.

Memory tables, for example, contain information about the allocation of main and secondary (virtual) memory for each process, authorization attributes for accessing memory areas shared among different processes, etc. I/O tables may have entries stating the availability of a device or its assignment to a process, the status of I/O operations, the location of memory buffers used for them, etc.

Process identification data include a unique identifier for the process (almost invariably an integer) and, in a multiuser-multitasking system, data such as the identifier of the parent process, user identifier, user group identifier, etc. The process id is particularly relevant since it is often used to cross-reference the tables defined above, e.g. showing which process is using which I/O devices, or memory areas.

Process state data define the status of a process when it is suspended, allowing the OS to restart it later. This always includes the content of general-purpose CPU registers, the CPU process status word, stack and frame pointers, etc. During context switch, the running process is stopped and another process runs. The kernel must stop the execution of the running process, copy out the values in hardware registers to its PCB, and update the hardware registers with the values from the PCB of the new process.

Process control information is used by the OS to manage the process itself. This includes:

  • Process scheduling state – The state of the process in terms of "ready", "suspended", etc., and other scheduling information as well, such as priority value, the amount of time elapsed since the process gained control of the CPU or since it was suspended. Also, in case of a suspended process, event identification data must be recorded for the event the process is waiting for;
  • Process structuring information – the process's children id's, or the id's of other processes related to the current one in some functional way, which may be represented as a queue, a ring or other data structures;
  • Interprocess communication information – flags, signals and messages associated with the communication among independent processes;
  • Process Privileges – allowed/disallowed access to system resources;
  • Process State – new, ready, running, waiting, dead;
  • Process Number (PID) – unique identification number for each process (also known as Process ID);
  • Program Counter (PC) – a pointer to the address of the next instruction to be executed for this process;
  • CPU Registers – register set where process needs to be stored for execution for running state;
  • CPU Scheduling Information – information scheduling CPU time;
  • Memory Management Information – page table, memory limits, segment table;
  • Accounting Information – amount of CPU used for process execution, time limits, execution ID etc.;
  • I/O Status Information – list of I/O devices allocated to the process.

Location

PCB must be kept in an area of memory protected from normal process access. In some operating systems the PCB is placed at the bottom of the process stack.[5]

See also

Notes

  1. ^ "Process Control Block | Baeldung on Computer Science". 25 June 2020.
  2. ^ "Class 9: The Unix Filesystem". www.usna.edu. Retrieved 2023-12-09.
  3. ^ "CS 537 Notes: Directories". pages.cs.wisc.edu. Retrieved 2023-12-09.
  4. ^ Gagne, Abraham Silberschatz, Peter Baer Galvin, Greg (2013). Operating system concepts (9th ed.). Hoboken, N.J.: Wiley. pp. 107–108. ISBN 9781118063330.{{cite book}}: CS1 maint: multiple names: authors list (link)
  5. ^ Yong, Zhang, "Breaking through the Maximum Process Number", "Linux Journal", 1 January 2004, [1].

Baca informasi lainnya yang berhubungan dengan : article

Article 19 Article 20

Read other articles:

American football player (1930–1989) Carlton MasseyMassey on a 1955 Bowman football cardBorn:(1930-01-17)January 17, 1930Rockwall, Texas, U.S.Died:May 22, 1989(1989-05-22) (aged 59)Dilley, Texas, U.S.Career informationPosition(s)End, defensive endCollegeTexasHigh schoolRockwall (Rockwall, Texas)NFL draft1953 / Round: 8 / Pick 95Career historyAs player1954–1956Cleveland Browns1957–1958Green Bay Packers Career highlights and awards Consensus All-American (1953) First…

Part of Earth's aquatic ecosystems Freshwater ecosystem Freshwater ecosystems are a subset of Earth's aquatic ecosystems. They include lakes, ponds, rivers, streams, springs, bogs, and wetlands.[1] They can be contrasted with marine ecosystems, which have a larger salt content. Freshwater habitats can be classified by different factors, including temperature, light penetration, nutrients, and vegetation. There are three basic types of freshwater ecosystems: Lentic (slow moving water, inc…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يناير 2020) انتقال بافلوف العملي هو ظاهرة نفسية تظهر حين يغير منبه مشروط (سي إس، أو يُعرَف باسم «إلماعة»)، مرتبط بمنبهات مجزية أو منفرة عبر الإشراط الكلاسيكي، من التميز ال…

Lokomotyv Kharkiv Voleibol Alcunhas Ferroviários Cores                Informações Cidade Carcóvia País Ucrânia Competição Superliga Ucraniana Fundação 1973 Ginásio Sports Palace Lokomotyv(Capacidade: 5 000) Presidente Yevgen Shcherbyna Resultados Títulos Conquistados 1 Taça CEV 17 Campeonato Ucraniano 13 Copa da Ucrânia 1 Supercopa Ucraniana Uniformes Principal Alternativo Líbero Página Oficial O Lokomotyv Kharkiv (…

South Korean actor This article is about the actor. For the singer, see Im Hyun-sik (singer). In this Korean name, the family name is Im. Im Hyun-sikBorn (1945-12-31) December 31, 1945 (age 77)Sunchang County, North Jeolla ProvinceEducationHanyang University - Theater and Film (1964) Kyung Hee University - Honorary Doctorate (2000)OccupationActorYears active1969-presentKorean nameHangul임현식Hanja林玄植Revised RomanizationIm Hyeon-sikMcCune–ReischauerIm Hyŏn-sik Im Hyun-sik (b…

Bupati Buton UtaraPetahanaDr. Drs. H. Muh. Ridwan Zakariah, M.Si.sejak 26 Februari 2021Masa jabatan5 tahunDibentuk2 Juli 2007Pejabat pertamaKasim, S.H. (Pj.)Situs webbutonutarakab.go.id Berikut ini adalah daftar Bupati Buton Utara yang menjabat sejak pembentukannya pada tahun 2007. No Bupati Mulai Jabatan Akhir Jabatan Prd. Ket. Wakil Bupati - KasimS.H. 2 Juli 2007 11 Januari 2009 - [Ket. 1] – Drs. H. M.Ridwan ZakariahM.Si. 12 Januari 2009 12 Januari 2010 [Ket. 2] Drs. H. …

2019冠状病毒病卡塔尔疫情疾病COVID-19病毒株SARS-CoV-2地点卡塔尔指示病例多哈首例确诊日期2020年2月29日(3年9个月又5天)資料统计确诊個案122,917死亡個案209治愈個案119,822政府网站https://covid19.moph.gov.qa/EN/Pages/default.aspx 医学声明  卡塔尔2019冠状病毒病  (查论编)     死亡        康复        

BershkaJenisPerusahaan perseoranganIndustriRitelDidirikanApril 1998KantorpusatArteixo, SpanyolCabang1006 tokoWilayah operasiSeluruh duniaProdukPakaianPendapatan €1,664 miliar (2014)[1]IndukInditexDivisiBershka DiseñoBerksha LogísticaSitus webwww.bershka.com Bershka (pengucapan bahasa Spanyol: [ˈberʃka], [ˈberska]) adalah salah satu merek dari perusahaan ritel adidaya asal Spanyol, Inditex Group (yang juga memiliki merek Zara, Massimo Dutti, Pull and Bear, Oysho, Uterqüe, Str…

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Februari 2023. Java-eilandPermukiman di AmsterdamPeta kawasan dermaga timur (Oostelijk Havengebied) di AmsterdamNegara BelandaProvinsiHolland UtaraCOROPAmsterdamZona waktuUTC+1 (CET) Java-eiland dilihat dari Oostelijke Handelskade Lamonggracht Java-eiland (bahasa …

Энтомофауна Крыма — совокупность видов насекомых, которые населяют территорию Крымского полуострова. Содержание 1 Общая характеристика 2 Видовой состав 2.1 Жесткокрылые 2.2 Чешуекрылые 2.3 Прямокрылые 2.4 Перепончатокрылые 2.5 Стрекозы 2.6 Богомоловые 2.7 Двукрылые 2.8 Подёнки …

Japanese reconnaissance seaplane E2N Role Reconnaissance seaplaneType of aircraft Manufacturer Nakajima Aircraft Company Introduction 1927 Primary user Imperial Japanese Navy Produced 1927-1929 Number built 80 The Nakajima E2N was a Japanese reconnaissance aircraft of the inter-war years. It was a single-engine, two-seat, sesquiplane seaplane with twin main floats. Design and development The E2N was developed in the 1920s for the Imperial Japanese Navy as a short range reconnaissance floatp…

For the Earth-orbiting satellite, see Vanguard 2. 1984 video gameVanguard IIArcade flyerDeveloper(s)SNKPublisher(s)SNKPlatform(s)ArcadeReleaseWW: March 1984[1]Genre(s)Multidirectional shooterMode(s)Up to 2 players alternating turns Vanguard II (Japanese: ヴァンガードII) is a multidirectional shooter video game developed and published by SNK released in arcades in 1984. It is the sequel to the 1981 game Vanguard.[2] It was not as successful as the original. Gameplay Gameplay…

A junta militar de Honduras de 1978-1980, que dirigiu Honduras após um golpe de Estado que depôs o General Juan Alberto Melgar Castro[1] , iniciou o seu governo em 8 de agosto de 1978 até 27 de janeiro de 1980. A junta militar foi formada por um triunvirato de oficiais das Forças Armadas de Honduras: General de Brigada: Policarpo Paz García, chefe da junta militar e comandante do Exército de Honduras;[2] Coronel da Aviação: Domingo Antonio Álvarez Cruz, Comandante da Força Aérea Hondu…

Railway station in Niigata, Japan 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: Kobari Station – news · newspapers · books · scholar · JSTOR (November 2016) (Learn how and when to remove this template message) Kobari Station小針駅A local train at track 2 in December 2013General informationLocation5-12 Koba…

This biographical article is written like a résumé. Please help improve it by revising it to be neutral and encyclopedic. (February 2020)Martin GuardadoBorn1962 (age 60–61)El SalvadorKnown forHeritage language socializationAcademic backgroundAlma materUniversity of British ColumbiaDoctoral advisorPatricia DuffAcademic workSub-discipline Sociocultural linguistics Applied linguistics Sociology of language Heritage languages Institutions Universidad Francisco Gavidia University of…

柏林陷落第四次反法同盟的一部分拿破崙進入柏林,身後為勃兰登堡门日期1806年10月24日[1][2]地点普魯士王國柏林52°31′12″N 13°24′18″E / 52.52000°N 13.40500°E / 52.52000; 13.40500结果 法國勝利参战方 法蘭西第一帝國 普魯士王國指挥官与领导者 拿破崙一世 腓特烈·威廉三世 在欧洲的位置 查论编第四次反法同盟 普魯士和波蘭戰役 施莱茨 萨尔费尔德 耶…

Kolom in een HPLC-opstelling High-performance liquid chromatography (HPLC; soms ook high-pressure liquid chromatography genoemd) is een scheidingsmethode; het is vloeistofchromatografie waarbij de eluens onder hoge druk door een sterk gepakte kolom wordt gepompt. De druk kan voor normale HPLC oplopen tot zo'n 200 bar. Voor UHPLC (Ultra High performance Liquid Chromatography) kan de druk zelfs zo'n 1000 bar of meer zijn. Door de hoge druk en het goede contact met de stationaire fase wordt een rel…

Dieser Artikel behandelt den Rabbiner Rothschild. Zum Bankier und Zoologen siehe Lionel Walter Rothschild, 2. Baron Rothschild. Zum Deutschen Verleger siehe Walther Rothschild. Walter Rothschild (2021) Walter L. Rothschild[1] (geboren am 20. März 1954 in Bradford) ist ein deutsch-britischer liberaler Rabbiner und Autor. Von 2005 bis 2015 war er Landesrabbiner für Schleswig-Holstein. Inhaltsverzeichnis 1 Leben 2 Familie 3 Veröffentlichungen 4 Literatur 5 Weblinks 6 Einzelnachweise Lebe…

Kuskus beruang sulawesi[1] Kuskus beruang sulawesi di Cagar Alam Tangkoko Batuangus, Sulawesi Utara Status konservasi Rentan (IUCN 3.1)[2] Klasifikasi ilmiah Kerajaan: Animalia Filum: Chordata Kelas: Mammalia Ordo: Diprotodontia Famili: Phalangeridae Genus: Ailurops Spesies: A. ursinus Nama binomial Ailurops ursinus(Temminck, 1824) Penyebaran Kuskus Beruang Sulawesi Sinonim Phalanger ursinus (Temminck, 1824) Kuskus beruang sulawesi (Ailurops ursinus) adalah spesies mars…

Clément V et Philippe IV le Bel face aux Templiers, Maître de Boucicaut, XVe siècle. Templiers sur le bûcher en présence de Philippe IV le Bel, XVe siècle. Le procès de l'ordre du Temple est une affaire judiciaire internationale du XIVe siècle. L'ordre du Temple est accusé en 1307[1],[2] par la royauté française de plusieurs chefs d'accusation comprenant l'hérésie, la simonie, la sodomie et l'idolâtrie[3]. Cette affaire prend une ampleur particulière car elle met en…

Kembali kehalaman sebelumnya