Computer multitasking
running simultaneously with the KDE Plasma 6 desktop environment, Firefox, KCalc, the built-in calendar, GNU nano, GIMP, and the VLC media player. released in 1985, here shown running the MS-DOS Executive and Calculator programs In computing, multitasking is the concurrent execution of multiple tasks (also known as processes) over a certain period of time. New tasks can interrupt already started ones before they finish, instead of waiting for them to end. As a result, a computer executes segments of multiple tasks in an interleaved manner, while the tasks share common processing resources such as central processing units (CPUs) and main memory. Multitasking automatically interrupts the running program, saving its state (partial results, memory contents and computer register contents) and loading the saved state of another program and transferring control to it. This "context switch" may be initiated at fixed time intervals (pre-emptive multitasking), or the running program may be...
running simultaneously with the KDE Plasma 6 desktop environment, Firefox, KCalc, the built-in calendar, GNU nano, GIMP, and the VLC media player. released in 1985, here shown running the MS-DOS Executive and Calculator programs In computing, multitasking is the concurrent execution of multiple tasks (also known as processes) over a certain period of time. New tasks can interrupt already started ones before they finish, instead of waiting for them to end. As a result, a computer executes segments of multiple tasks in an interleaved manner, while the tasks share common processing resources such as central processing units (CPUs) and main memory. Multitasking automatically interrupts the running program, saving its state (partial results, memory contents and computer register contents) and loading the saved state of another program and transferring control to it. This "context switch" may be initiated at fixed time intervals (pre-emptive multitasking), or the running program may be coded to signal to the supervisory software when it can be interrupted (cooperative multitasking). Multitasking does not require parallel execution of multiple tasks at exactly the same time; instead, it allows more than one task to advance over a given period of time. Even on multiprocessor computers, multitasking allows many more tasks to be run than there are CPUs. Multitasking is a common feature of computer operating systems since at least the 1960s. It allows more efficient use of the computer hardware; when a program is waiting for some external event such as a user input or an input/output transfer with a peripheral to complete, the central processor can still be used with another program. In a time-sharing system, multiple human operators use the same processor as if it was dedicated to their use, while behind the scenes the computer is serving many users by multitasking their individual programs. In multiprogramming systems, a task runs until it must wait for an external event or until the operating system's scheduler forcibly swaps the running task out of the CPU. Real-time systems such as those designed to control industrial robots, require timely processing; a single processor might be shared between calculations of machine movement, communications, and user interface. Often multitasking operating systems include measures to change the priority of individual tasks, so that important jobs receive more processor time than those considered less significant. Depending on the operating system, a task might be as large as an entire application program, or might be made up of smaller threads that carry out portions of the overall program. A processor intended for use with multitasking operating systems may include special hardware to securely support multiple tasks, such as memory protection, and protection rings that ensure the supervisory software cannot be damaged or subverted by user-mode program errors. The term "multitasking" has become an international term, as the same word is used in many other languages such as German, Italian, Dutch, Romanian, Czech, Danish and Norwegian. == Cooperative multitasking == Early multitasking systems used applications that voluntarily ceded time to one another. This approach, which was eventually supported by many computer operating systems, is known today as cooperative multitasking. Although it is now rarely used in larger systems except for specific applications such as CICS or the JES2 subsystem, cooperative multitasking was once the only scheduling scheme employed by Microsoft Windows and classic Mac OS to enable multiple applications to run simultaneously. Cooperative multitasking is still used today on RISC OS systems. As a cooperatively multitasked system relies on each process regularly giving up time to other processes on the system, one poorly designed program can consume all of the CPU time for itself, either by performing extensive calculations or by busy waiting; both would cause the whole system to hang. In a server environment, this is a hazard that makes the entire environment unacceptably fragile.
References
- ^ "What Is Multitasking?" . Computer Hope . Retrieved 2026-02-11 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1770764400.0
- ^ Joseph Moran (June 2006). "Windows 2000 &16-Bit Applications" . Smart Computing . Vol. 16, no. 6. pp. 32– 33. Archived from the original on January 25, 2009. Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ Liu, C. L.; Layland, James W. (1973-01-01). "Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment" . Journal of the ACM . 20 (1): 46– 61. doi : 10.1145/321738.321743 . ISSN 0004-5411 . S2CID 59896693 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ Eduardo Ciliendo; Takechika Kunimasa (April 25, 2008). "Linux Performance and Tuning Guidelines" (PDF) . redbooks.ibm.com . IBM . p. 4. Archived from the original (PDF) on February 26, 2015 . Retrieved March 1, 2015 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ "Context Switch Definition" . linfo.org . May 28, 2006. Archived from the original on February 18, 2010 . Retrieved February 26, 2015 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ "What are threads (user/kernel)?" . tldp.org . September 8, 1997 . Retrieved February 26, 2015 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ Multitasking different methods Accessed on February 19, 2019 Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ "What is a swap file?" . kb.iu.edu . Retrieved 2018-03-26 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1522018800.0
- ^ "Operating Systems Architecture" . cis2.oc.ctc.edu . Retrieved 2018-03-17 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1521241200.0
- ^ "Concurrency vs Parallelism, Concurrent Programming vs Parallel Programming" . Oracle. Archived from the original on April 7, 2016 . Retrieved March 23, 2016 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ Anthony Ralston, Edwin D. Reilly (ed), Encyclopedia of Computer Science Third Edition , Van Nostrand Reinhold, 1993, ISBN 0-442-27679-6 , articles "Multitasking" and "Multiprogramming" Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ Bataille, M. (1972-04-01). "Something old: the Gamma 60 the computer that was ahead of its time". ACM SIGARCH Computer Architecture News . 1 (2): 10– 15. doi : 10.1145/641276.641278 . ISSN 0163-5964 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ MASTER PROGRAME AND PROGRAMME TRIALS SYSTEM PART 1 MASTER PROGRAMME SPECIFICATION . February 1965. section 6 "PRIORITY CONTROL ROUTINES". Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ Lithmee (2019-05-20). "What is the Difference Between Batch Processing and Multiprogramming" . Pediaa.Com . Retrieved 2020-04-14 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1586818800.0
- ^ "Evolution of Operating System" . 2017-09-29 . Retrieved 2020-04-14 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1586818800.0
- ^ "Preemptive multitasking" . riscos.info . 2009-11-03 . Retrieved 2014-07-27 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1406415600.0
- ^ "UNIX, Part One" . The Digital Research Initiative . ibiblio.org. 2002-01-30 . Retrieved 2014-01-09 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1389222000.0
- ^ Downard, Dan (September 1983). "Dynamic Uno" . The Rainbow . pp. 236– 240 . Retrieved 9 May 2024 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- ^ 1984 TRS-80 Catalog . Tandy Corporation. 1984. pp. 53– 54 . Retrieved 14 May 2024 . Wikipedia revision 1369241893, retrieved 2026-11-19 · 1795042800.0
- Wikipedia “Computer multitasking” revision 1369241893 · retrieved 2026-10-20 release date (×1) · confidence 0.95 revision URL · 1792450800.0
Cite this
"Computer multitasking". 1786641726. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1369241893