Share to: share facebook share twitter share wa share telegram print page
Available for Advertising

Task (computing)

A sample thread pool (green boxes) with task queues of waiting tasks (blue) and completed tasks (yellow), in the sense of task as "unit of work".

In computing, a task is a unit of execution or a unit of work. The term is ambiguous; precise alternative terms include process, light-weight process, thread (for execution), step, request, or query (for work). In the adjacent diagram, there are queues of incoming work to do and outgoing completed work, and a thread pool of threads to perform this work. Either the work units themselves or the threads that perform the work can be referred to as "tasks", and these can be referred to respectively as requests/responses/threads, incoming tasks/completed tasks/threads (as illustrated), or requests/responses/tasks.

Terminology

In the sense of "unit of execution", in some operating systems, a task is synonymous with a process[citation needed], and in others with a thread[citation needed]. In non-interactive execution (batch processing), a task is a unit of execution within a job,[1][2] with the task itself typically a process. The term "multitasking" primarily refers to the processing sense – multiple tasks executing at the same time – but has nuances of the work sense of multiple tasks being performed at the same time.

In the sense of "unit of work", in a job (meaning "one-off piece of work") a task can correspond to a single step (the step itself, not the execution thereof), while in batch processing individual tasks can correspond to a single step of processing a single item in a batch, or to a single step of processing all items in the batch. In online systems, tasks most commonly correspond to a single request (in request–response architectures) or a query (in information retrieval), either a single stage of handling, or the whole system-wide handling.

Examples

In the Java programming language, these two concepts (unit of work and unit of execution) are conflated when working directly with threads, but clearly distinguished in the Executors framework:

When you work directly with threads, a Thread serves as both a unit of work and the mechanism for executing it. In the executor framework, the unit of work and the execution mechanism are separate. The key abstraction is the unit of work, which is called a task.[3]

IBM terminology

IBM's use of the term has been influential, though underlining the ambiguity of the term, in IBM terminology, "task" has dozens of specific meanings, including:[4]

  • A unit of work representing one of the steps in a process.
  • A unit of work to be accomplished by a device or process.
  • A process and the procedures that run the process.
  • A set of actions designed to achieve a particular result. A task is performed on a set of targets on a specific schedule.
  • A unit of computation. In a parallel job, two or more concurrent tasks work together through message passing and shared memory. Although it is common to allocate one task per physical or logical processor, the terms "task" and "processor" are not interchangeable.
  • An activity that has business value, is initiated by a user, and is performed by software.

In z/OS specifically, it is defined precisely as:[5]

  • "In a multiprogramming or multiprocessing environment, one or more sequences of instructions treated by a control program as an element of work to be accomplished by a computer."

The term task in OS/360 through z/OS is roughly equivalent to light-weight process; the tasks in a job step share an address space. However, in MVS/ESA through z/OS, a task or Service Request Block (SRB) may have access to other address spaces via its access list.

Linux kernel

The term task is used in the Linux kernel (at least since v2.6.13,[6] up to and including v4.8[7]) to refer to a unit of execution, which may share various system resources with other tasks on the system. Depending on the level of sharing, the task may be regarded as a conventional thread or process. Tasks are brought into existence using the clone() system call,[8] where a user can specify the desired level of resource sharing.

History

The term task for a part of a job dates to multiprogramming in the early 1960s, as in this example from 1961:

The serial model has the ability to process tasks of one job in an independent manner similar to the functioning of the IBM 709.[9]

The term was popularized with the introduction of OS/360 (announced 1964), which featured Multiprogramming with a Fixed number of Tasks (MFT) and Multiprogramming with a Variable number of Tasks (MVT). In this case tasks were identified with light-weight processes, a job consisted of a number of tasks, and, later, tasks could have sub-tasks (in modern terminology, child processes).

Today the term "task" is used very ambiguously. For example, the Windows Task Manager manages (running) processes, while Windows Task Scheduler schedules programs to execute in future, what is traditionally known as a job scheduler, and uses the .job extension. By contrast, the term "task queue" is commonly used in the sense of "units of work".

See also

References

  1. ^ "What is task? - Definition from WhatIs.com". WhatIs.com. Retrieved June 11, 2015.
  2. ^ "What are computer processes?". liutilities.com. Retrieved June 11, 2015.
  3. ^ Bloch, Joshua. Effective Java (Third ed.). p. p. 272, Item 68.
  4. ^ IBM Terminology: T
  5. ^ Glossary of z/OS terms and abbreviations: T
  6. ^ "include/linux/sched.h". GitHub.com. Linus Torvalds. August 29, 2005.
  7. ^ "include/linux/sched.h". GitHub.com. Linus Torvalds. October 3, 2016.
  8. ^ "clone, __clone2 - create a child process". Linux Programmer's Manual. July 17, 2016. Retrieved November 6, 2016.
  9. ^ James Larrimore McKenney (1961). Simultaneous multiprogramming of electronic computers. p. 154.

Read other articles:

Free software Git and Mercurial repository hosting For other uses, see Kallithea (disambiguation). KallitheaDeveloper(s)Software Freedom ConservancyInitial releaseJuly 4, 2014; 9 years ago (2014-07-04)[1]Stable release0.7.0 / May 27, 2021; 2 years ago (2021-05-27)[2] Repositorykallithea-scm.org/repos/kallithea Written inFailed to render property programming language: programming language property not found.[3]Operating systemPlatform...

IPFire IPFire-LogoРозробник IPFire teamРодина ОС LinuxРобочий стан активнийВихідна модель відкритий кодОстанній випуск 2.19 Core Update 107 / 8 жовтня 2016; 7 років тому (2016-10-08)Мови багатомовнийМенеджер пакетів PakfireТип ядра монолітне ядроІнтерфейскористувача вебінтерфейсЛіцензія GPL ww...

1986 studio album by Megadeth Peace Sells... but Who's Buying?Cover art by Ed RepkaStudio album by MegadethReleasedSeptember 19, 1986 (1986-09-19)RecordedFebruary–March 1986Studio Music Grinder, Track Records, and Rock Steady, Los Angeles Maddog, Venice, California GenreThrash metal[1][2]Length36:12LabelCapitolProducer Dave Mustaine Randy Burns Megadeth chronology Killing Is My Business... and Business Is Good!(1985) Peace Sells... but Who's Buying?(1986) ...

Russian–American physicist and professor (1899–1981) Gregory BreitГригорий Альфредович Брейт-ШнайдерPhotograph of Gregory BreitBornGregory Alfredovich Breit-Schneider(1899-06-14)June 14, 1899Mykolaiv, Kherson Governorate, Russian EmpireDiedSeptember 13, 1981(1981-09-13) (aged 82)Salem, Oregon, USAlma materJohns Hopkins UniversityKnown forRelativistic Breit–Wigner distributionBreit equationBreit frameBreit–Rabi formulaBreit–Wheeler proces...

Dieser Artikel behandelt die Nachfolger-Serie. Für die Vorgänger-Serie (2011–2022) siehe Ninjago. Serie Titel Ninjago: Aufstieg der Drachen Originaltitel Ninjago: Dragons Rising Produktionsland Kanada Originalsprache Englisch Genre Action, Abenteuer Erscheinungsjahre seit 2023 Länge 22 Minuten Episoden 20 in 1 Staffel Produktions-unternehmen WildBrain StudiosLego Idee Ninjago Premiere 1. Juni 2023 auf Netflix DeutschsprachigePremiere 5. Juni 2023 auf Super RTL (TV-Premiere...

Wappen Deutschlandkarte 48.7233333333338.7938888888889505Koordinaten: 48° 43′ N, 8° 48′ O Basisdaten Bundesland: Baden-Württemberg Regierungsbezirk: Karlsruhe Landkreis: Calw Höhe: 505 m ü. NHN Fläche: 19,16 km2 Einwohner: 7963 (31. Dez. 2022)[1] Bevölkerungsdichte: 416 Einwohner je km2 Postleitzahl: 75382 Vorwahl: 07051 Kfz-Kennzeichen: CW Gemeindeschlüssel: 08 2 35 007 LOCODE: DE AET Gemeindegliederung:...

Seis Naciones Femenino 20222022 RBS Women's Six NationsDatos generalesSede EuropaFecha 26 de marzo al 30 de abrilEdición XXVII Seis Naciones FemeninoOrganizador Six Nations Rugby LtdPatrocinador Royal Bank of ScotlandPalmarésCampeón  InglaterraParticipantes 6Partidos 15 Cronología Seis Naciones Femenino 2021 Seis Naciones Femenino 2022 Seis Naciones Femenino 2023 Sitio oficial [editar datos en Wikidata] El Seis Naciones Femenino 2022, también conocido como 2022 RBS Women's...

International airport in Atlanta, Georgia, United States Atlanta Airport redirects here. For the airport in Idaho, see Atlanta Airport (Idaho). For the airport in Atlanta, Texas, see Hall-Miller Municipal Airport. Hartsfield–Jackson Atlanta International AirportIATA: ATLICAO: KATLFAA LID: ATLWMO: 72219SummaryAirport typePublicOwner/OperatorAtlanta Department of AviationServesAtlanta metropolitan areaLocationUnincorporated areas of Clayton County; also Atlanta, College Park, and Hapeville in...

Libertarian political migration Free State ProjectFormationSeptember 1, 2001; 22 years ago (2001-09-01)Headquarters373 South Willow St #161, Manchester, New Hampshire, U.S.Websitefsp.org This article is part of a series onLibertarianismin the United States Schools Agorism Anarcho-capitalism Austro Autarchism Bleeding-heart Christian Consequentialist Feminist Fusionism Geo Green Left-wing market anarchism Minarchism Natural-rights Neo Paleo Panarchism Paternalist Propertarian...

For the village located within this town, see St. Johnsville (village), New York. Town in New York, United StatesSt. JohnsvilleTownLocation in Montgomery County and the state of New York.Location of New York in the United StatesCoordinates: 42°59′59″N 74°40′42″W / 42.99972°N 74.67833°W / 42.99972; -74.67833CountryUnited StatesStateNew YorkCountyMontgomeryGovernment • Town SupervisorPhoebe Sitterly (R) Town Council Ronald R. Millington (R)Ronald ...

Mass shooting in Mexico 2010 Chihuahua shootingsChihuahua state in MexicoLocationSecond floor, Templo Cristiano Fe y Vida (Christian Faith and Life Temple), Chihuahua, MexicoDate10 June 2010; 13 years ago (2010-06-10)Attack typeMass shootingDeaths19Injured4PerpetratorsAt least 30 gunmen vteMexican drug warProjects and operations: Community Shield Gunrunner Jump Start Michoacán Wide Receiver Baja California Solare Xcellerator Sinaloa Nuevo León-Tama...

Not to be confused with kiai. Radio station in Mason City, IowaKIAIMason City, IowaBroadcast areaMason City, IowaAustin–Albert Lea, MinnesotaFrequency93.9 (MHz)Branding93.9 the Country MooseProgrammingFormatCountryOwnershipOwnerAlpha Media(Digity 3E License, LLC)HistoryFormer call signsKNIQ (1985-1991)Call sign meaningK-IowA-ITechnical informationFacility ID30115ClassC1ERP100,000 wattsHAAT241 m (791 ft)Transmitter coordinates43°10′04″N 93°06′05″W / 43.167...

American college basketball season This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: 2018–19 Arkansas–Pine Bluff Golden Lions men's basketball team – news · newspapers · books · scholar · JSTOR (November 2021) (Learn how and when to remove this template message) 2018–19 Arkansas–Pine Bluff Golden Lions men's basketballC...

TomulabutaoKelurahanNegara IndonesiaProvinsiGorontaloKotaGorontaloKecamatanDungingiKode Kemendagri75.71.04.1003 Kode BPS7571011003 Luas... km²Jumlah penduduk... jiwaKepadatan... jiwa/km² Kantor Lurah Tomulabutao Tomulabutao adalah salah satu kelurahan di wilayah kecamatan Dungingi, Kota Gorontalo, Provinsi Gorontalo, Indonesia. Pranala luar (Indonesia) Keputusan Menteri Dalam Negeri Nomor 050-145 Tahun 2022 tentang Pemberian dan Pemutakhiran Kode, Data Wilayah Administrasi Pemerintahan...

American animated television series The Ren & Stimpy ShowGenre Animated sitcom Black comedy Surreal humor Satire Slapstick Created byJohn KricfalusiDeveloped by John Kricfalusi Bob Camp Jim Smith Lynne Naylor Directed byJohn Kricfalusi (seasons 1–2)Bob Camp (seasons 3–5)Voices ofJohn Kricfalusi (seasons 1–2)Billy WestTheme music composerJohn KricfalusiChris ReccardiJim SmithScott HumlComposersShawn Patterson (Ol' Blue Nose and Sammy and Me)Chris Reccardi (Hard Times for Haggis, Herm...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ديسمبر 2020) دي جيه آي أوزمومعلومات عامةالنوع camcorder (en) الصانع دي جيه آي موقع الويب dji.com… أهم التواريختاريخ الإصدار 8 أكتوبر 2015 القياساتالوزن 201 غرام تعديل - تعديل مصدري - ...

LOEB'S, INC.TypePrivateIndustryRetailFounded1887; 136 years ago (1887) in Meridian, MississippiHeadquarters2209 Front Street,Meridian, Mississippi, USKey peopleRobert Loeb, PresidentProductsClothing, footwear, eyewear, accessories, outdoor gearWebsiteloebsclothing.com Loeb's today on Front Street in Meridian, Mississippi Loeb's Inc. is an American department store based in Meridian, Mississippi. Loeb's was founded in 1887 by Alex Loeb as Alex Loeb, Inc. Today, Loeb's legal n...

Koordinat: 8°25′53″S 114°12′58″E / 8.4315°S 114.2162°E / -8.4315; 114.2162 CluringKecamatanPeta lokasi Kecamatan CluringNegara IndonesiaProvinsiJawa TimurKabupatenBanyuwangiPemerintahan • Camat-Populasi • Total- jiwaKode Kemendagri35.10.06 Kode BPS3510060 Desa/kelurahan9 Cluring adalah sebuah kecamatan di Kabupaten Banyuwangi, Provinsi Jawa Timur, Indonesia.[1][2] Desa Cluring merupakan sebuah kecamatan yang terb...

Dreadnought battleship class of the United States Navy Colorado steaming off New York City, c. 1932 Class overview NameColorado-class battleship Builders New York Shipbuilding Corporation Newport News Shipbuilding Operators United States Navy Preceded byTennessee class Succeeded by South Dakota class (1920) (planned) North Carolina class (actual) Built1917–1923 In commission1921–1947 Planned4 Completed3 Cancelled1 Retired3 General characteristics [1] TypeSuper-dreadnough...

Carl Reiner/Mel Brooks comedy sketch Rhino Records' 2000 Year Old Man boxed set of albums one through four The 2000 Year Old Man is a comedy sketch created by Carl Reiner and Mel Brooks in the 1950s and first publicly performed in the 1960s. Brooks plays a 2000-year-old man, interviewed by Reiner in a series of comedy routines that were turned into a collection of records and also performed on television.[1][2][3] History The foundation for the routine was laid during ...

Kembali kehalaman sebelumnya