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:

Changes to a car, truck or bus's styling Toyota Yaris (XP130), 2011–2013 with its 2014 and 2017 facelifts An automotive facelift, also known as mid-generational refresh, minor model change, minor model update, or life cycle impulse, comprises changes to a vehicle's styling during its production run including, to highly variable degree, new sheetmetal, interior design elements or mechanical changes,[1] allowing a carmaker to freshen a model without a complete redesign. While the life...

 

 

  لمعانٍ أخرى، طالع سكوت تومسون (توضيح). سكوت تومسون   معلومات شخصية الميلاد 29 أكتوبر 1957 (66 سنة)  كاليفورنيا  مواطنة الولايات المتحدة  الحياة العملية المهنة ممثل،  وممثل تلفزيوني،  وممثل أفلام  اللغة الأم الإنجليزية  اللغات الإنجليزية  المواقع IMDB ص

 

 

Penyuntingan Artikel oleh pengguna baru atau anonim untuk saat ini tidak diizinkan.Lihat kebijakan pelindungan dan log pelindungan untuk informasi selengkapnya. Jika Anda tidak dapat menyunting Artikel ini dan Anda ingin melakukannya, Anda dapat memohon permintaan penyuntingan, diskusikan perubahan yang ingin dilakukan di halaman pembicaraan, memohon untuk melepaskan pelindungan, masuk, atau buatlah sebuah akun. Suku TorajaTo Raya, To Raa, To RiajaAnak perempuan Toraja pada upacara pernikahan...

Pfarrkirche St. Michael, Buir St. Michael ist eine römisch-katholische Pfarrkirche im Kerpener Stadtteil Buir im Rhein-Erft-Kreis in Nordrhein-Westfalen. Querschiff und Chor wurden zwischen 1890 und 1891, Kirchenschiff und Turm zwischen 1896 und 1898 nach Plänen von Franz Statz erbaut. Das Bauwerk ist unter Nr. 25 in die Liste der Baudenkmäler in Buir (Kerpen) eingetragen und dem hl. Erzengel Michael geweiht, Zweitpatron ist der hl. Blasius von Sebaste. Inhaltsverzeichnis 1 Geschichte 2 Ar...

 

 

Prajurit Patangpuluhan memulai Parade arak-arakan sebagai pembuka jalan barisan panji kebesaran. Grebeg Besar Demak adalah perayaan yang dilakukan setahun sekali pada bulan Zulhijah oleh masyarakat Muslim di Masjid Agung Demak. Bentuk kegiatannya adalah ziarah ke makam para sultan Kesultanan Demak dan ke makam Sunan Kalijaga. Pada malam hari menjelang tanggal 10 Zulhijah, diadakan acara Tumpeng Sanga dan di Kadilangu diadakan Selamatan Ancakan. Pagi hari pada tanggal 10 Dzulhijah, masyarakat ...

 

 

この記事の項目名には以下のような表記揺れがあります。 アンソニー・リッゾ アントニー・リッツォ アンソニー・リゾAnthony Rizzoニューヨーク・ヤンキース #48 シカゴ・カブス時代(2017年7月15日)基本情報国籍 アメリカ合衆国出身地 フロリダ州フォートローダーデール生年月日 (1989-08-08) 1989年8月8日(34歳)身長体重 6' 3 =約190.5 cm240 lb =約108.9 kg選手情報投球・打...

Artikel ini bukan mengenai Gombloh. Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Eddy Gombloh – berita · surat kabar · buku · cendekiawan · JSTOR Eddy GomblohLahirSupardi(1941-08-17)17 Agustus 1941Yogyakarta, Hindia BelandaMeninggal4 Agustus 2022(2...

 

 

The cover of the 1998 first edition The Australian Poultry Standards is the official breed standard for poultry fancy in Australia. It is the standard of perfection from which all poultry in Australia is supposed to be judged when exhibited at poultry shows. It is published by Victorian Poultry Fanciers Association, the peak body for poultry in Victoria and agreed to by all other state peak bodies. Publication Published by the Victorian Poultry Fanciers Association Inc., the first edition of ...

 

 

Familienwappen Oliviers IV. Erweitertes Wappen Oliviers als Herr von Bougé und Derval Olivier IV. von Rougé (* vor 1233; † April 1304[1]) war ein bretonischer Ritter. Er war Herr von Rougé, Derval, La Chapelle-Glain, Le Bouays und Le Theil. Er war der Sohn Bonabes' II. von Rougé und der Alix von Châteaubriant. Er stammt somit aus dem alten bretonischen Adelsgeschlecht von Rougé, das bis heute existiert. Er nahm 1248 unter König Ludwig IX., dem Heiligen, am Sechsten Kreuzzug n...

زكي درويش معلومات شخصية الميلاد سنة 1945 (العمر 77–78 سنة)  البروة  مواطنة دولة فلسطين  إخوة وأخوات محمود درويش[1]  الحياة العملية المدرسة الأم جامعة حيفا  المهنة شاعر،  ومدرس  اللغات العربية،  والعبرية  بوابة الأدب تعديل مصدري - تعديل   زكي درويش (...

 

 

Television station in Denver, Colorado Not to be confused with KOVR or KDRV. KDVRDenver, ColoradoUnited StatesChannelsDigital: 36 (UHF)Virtual: 31BrandingFox31 DenverFox31 NewsProgrammingAffiliations31.1: Fox31.2: Antenna TV31.3: TBDOwnershipOwnerNexstar Media Group(Tribune Broadcasting Company II LLC)Sister stationsKWGN-TVHistoryFirst air dateAugust 10, 1983(40 years ago) (1983-08-10)Former call signsKTMX-TV (1981–1983)Former channel number(s)Analog: 31 (UHF, 1983–2009)Digital:...

 

 

Templo de Ísis em Filas, com pilones e um pátio fechado à esquerda, e o edifício interno à direita Os templos egípcios eram edifícios construídos para o culto oficial dos deuses e para celebrar os faraós do Antigo Egito, tanto em seu território como nas regiões sob seu domínio. Estes templos eram vistos como a casa dos deuses ou reis a que haviam sido dedicados. Como só os faraós e os sacerdotes tinham acesso a estas residências, os praticantes reuniam-se no exterior para celeb...

Peta bahasa Serbia-Kroasia terbagi dalam dialek-dialek besarnya. Konferensi pers tentang Deklarasi tentang Bahasa Umum Deklarasi tentang Bahasa Umum (bahasa Serbo-Kroasia: Deklaracija o zajedničkom jeziku / Декларација о заједничком језику) dikeluarkan pada 2017 oleh sekelompok intelektual dan organisasi non-pemerintahan dari Kroasia, Bosnia dan Herzegovina, Montenegro, dan Serbia yang berkarya di bawah naungan dari sebuah proyek yang disebut Bahasa dan Nasio...

 

 

First aerospace nurse to NASA's first astronauts Dee O'HaraDee O'HaraBorn (1935-08-09) August 9, 1935 (age 88)Nampa, Idaho, U.S.Known forFirst Nurse to NASA's First Astronauts Dolores B. Dee O'Hara (born August 9, 1935, in Nampa, Idaho) was the first aerospace nurse to NASA's first astronauts, laying the foundation to the field of Space nursing. O'Hara was the official nurse to the Mercury Seven astronauts and their families, continuing to support the Gemini Program, Apollo astr...

 

 

Worldwide industry dealing in the acquisition and sale of animal fur Fur Trade redirects here. For the band, see Fur Trade (band). 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: Fur trade – news · newspapers · books · scholar · JSTOR (June 2016) (Learn how and when to remove this template message) A fur tra...

神奈川縣第13區 眾議院選區国家日本所在行政区橫濱市瀨谷區、大和市、綾瀨市(2022年12月28日至今)类型日本众议院选区[*]选民數373,756人1.629 倍(與鳥取縣第1區的比較)(總務省・2022年9月1日)現有選區设置时间1994年(2017年、2022年區域變更)现任議員太榮志所在比例代表区南關東比例代表區 神奈川縣第13區是日本眾議院的選區,設立於1994年。 小選舉区選出議員 選舉名 ...

 

 

Sejarah komunikasi pada mulanya hanya merupakan upaya atau cara manusia menyampaikan ide, gagasan, kemauan, hasrat dan lain sebagainya, upaya tersebut hanya supaya manusia bisa saling berhubungan. Pada waktu itu, Komunikasi tidak dianggap sebagai sesuatu yang harus diberi perhatian, dikaji atau distrukturkan. Namun, pada abad ke-5 sebelum masehi, di Yunani berkembang suatu ilmu yang mengkaji proses pernyataan antar manusia yang diberi nama retorika yang berarti seni berpidato dan beragumentas...

 

 

Ini adalah nama Korea; marganya adalah Kim. Kim Sang-kyungLahir29 Desember 1971 (umur 51)Seoul, Korea SelatanPendidikanUniversitas Chung-Ang(B.A. Teater dan Film)(Graduate School of Advanced Imaging Science, Multimedia dan Film)PekerjaanAktorTahun aktif1998–sekarangSuami/istriKim Eun-gyung (m. 2007)[1]Nama KoreaHangul김상경 Hanja金相慶 Alih AksaraGim Sang-gyeongMcCune–ReischauerKim Sanggyŏng Kim Sang-kyung (lahir 29 Desember 1971) merupakan seorang aktor Korea Sel...

2008 studio album by Human HighwayMoody MotorcycleStudio album by Human HighwayReleasedAugust 19, 2008 (Canada/US)Recorded2008GenreIndie pop/Indie rockLength39:18LabelSuicide Squeeze (US), Secret City (CAN)ProducerJim Guthrie / Nick Thorburn Professional ratingsReview scoresSourceRatingAllmusic linkPitchfork Media(5.7/10) link Moody Motorcycle is an album by Human Highway. It was mastered by Fedge. The album's photography was done by Jaime Hogge. It was released on CD as well as root-...

 

 

Piala Dunia FIFA 1990Coppa del Mondo FIFA Italia '90Logo resmi Piala Dunia FIFA 1990Informasi turnamenTuan rumah ItaliaJadwalpenyelenggaraan8 Juni – 8 JuliJumlahtim peserta24 (dari 5 konfederasi)Tempatpenyelenggaraan12 (di 12 kota)Hasil turnamenJuara Jerman Barat (gelar ke-3)Tempat kedua ArgentinaTempat ketiga ItaliaTempat keempat InggrisStatistik turnamenJumlahpertandingan52Jumlah gol115 (2,21 per pertandingan)Jumlahpenonton2.516.215 (48.389 per...