Information Technology Topic
Multitasking, Multiprocessing, Multiprogramming
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- Multitasking: the OS switches quickly between several tasks on one processor, so the programs seem to run at the same time
- Multiprogramming: two or more programs are overlapped or interleaved on a single processor, so the processor is not left idle
- Multiprocessing: a computer uses two or more processors (or cores), so tasks really are worked on by more than one processor at once
Section 1Three words, three ideas
The syllabus gives basic treatment to three terms that sound alike. All three start with multi, meaning many, but they are different ideas. Multitasking: the OS switches quickly between several tasks on one processor, so they seem to happen at the same time. Multiprogramming: two or more programs are overlapped or interleaved on a single processor. Multiprocessing: two or more processors in one computer share the work. Here's the trick: ask 'how many processors?' first. One processor means multitasking or multiprogramming. More than one means multiprocessing.
Section 2Multitasking
Multitasking is what you see as a user. You can listen to music while browsing the internet, with other jobs running in the background, and nothing seems to wait for anything else. On one processor, the OS makes this happen by switching quickly between the tasks, so each gets a turn. It also schedules the work and assigns resources to each program. The switching is so fast that the tasks seem to run together.
Section 3Multiprogramming
Multiprogramming is a processing mode that overlaps or interleaves the execution of two or more programs on a single processor. The idea is that several programs are held in the computer at once, and the processor moves from one to another instead of sitting idle when one of them has nothing to do. In an old system that could hold only one program at a time, the processor did nothing whenever that program did nothing. The term was widely used in the third generation of computers (1964 to 1970), alongside terms such as on-line processing, real-time processing, time-sharing and multiprocessing. Easy to mix up: in basic treatment, multitasking and multiprogramming both mean one processor shared by several programs. Multitasking is the word you hear about modern PCs and phones, and multiprogramming is the older textbook term.
Section 4Multiprocessing
Multiprocessing means using two or more CPUs in one computer, so tasks can be completed on several processors. Today the processors are often cores inside one chip, which is called a multi-core processor. Each core can carry out instructions on its own. But many programs have steps that must be done one after the other, so four cores do not make a single program four times faster. Extra cores help most when there are several processes to run. Watch out: multiprocessing is the only one of the three that needs more than one processor. Do not use it to describe a single processor switching between tasks.
Section 5Types of system by users and tasks
Operating systems can also be described by how many users and tasks they handle. A single-user, single-tasking system does one task at a time. A single-user, multitasking system lets one person do several things, for example print one job while running another, as long as they do not need the same resource. A multi-user, multitasking system lets several users share the same resources at once.
Section 6Telling them apart in the exam
Match the keywords. Quickly switching, seem at the same time, one processor: multitasking. Overlapped or interleaved programs on a single processor: multiprogramming. Two or more CPUs or cores: multiprocessing. If a question describes a Kingston office PC playing music while the user types a letter, that is multitasking. If it describes a server with two or more processors sharing work, that is multiprocessing.
Examples
Name the term that best fits each description. (a) A student in Portmore plays music while writing an essay on one single-processor computer, and both seem to happen at once. (b) A server contains two CPUs and its tasks are shared out between them. (c) Two or more programs are overlapped on a single processor.
(a) Multitasking. The OS switches quickly between the tasks on one processor, so they seem to run together. (b) Multiprocessing. Two or more CPUs in one computer share the work. (c) Multiprogramming. That is the definition of overlapping or interleaving programs on a single processor.
A computer lab in Mandeville has three types of machine. Machine A has one single-core processor and runs a word processor, a music player and a download at the same time. Machine B has a processor with four cores. Machine C has one user, one processor and runs only one program at a time. (a) Classify the way A, B and C work. (b) Explain why Machine B is not four times faster than a one-core machine.
(a) Machine A: multitasking (and the programs are interleaved on a single processor, which is also the idea of multiprogramming). It has only one processor, so it is not multiprocessing. Machine B: multiprocessing, because it has more than one core, so parts of a program can be worked on at the same time. Machine C: single-user, single-tasking. It does one task at a time. (b) Many programs have steps that must be done in order, so extra cores cannot always share the work of one program. A four-core machine can get more done in total, but the gain on a single program is smaller than the number of cores suggests.
Now let's water it
Session runs notes to flashcards to quiz back-to-back.
Where this comes from
- CSEC Information Technology Syllabus (CXC 30/G/SYLL 08, revised 2000, 2008, 2013) · Caribbean Examinations Council (CXC) · Section 1, Specific Objective 13 · Syllabus scope
- Siyavula Information Technology Grades 10, 11 and 12 (South African CAPS textbooks), listed pages only · Siyavula · Unit 2.3, Overview of processing techniques (Grade 11 software: single-program systems, multitasking, multiprocessing, cores, and why extra cores do not always give a speed-up), checked against (https://www.siyavula.com/read/za/information-technology/grade-11/software/02-software) · Facts
- Navy Electricity and Electronics Training Series (NEETS), Module 22, Introduction to Digital Computers (NAVEDTRA 14194, September 1998) · US Navy (Naval Education and Training Professional Development and Technology Center) · Module 22, Appendix I, Glossary entries "Multiprogramming" and "Multiprocessing", Chapter 1, Third generation (p. 1-11), and Chapter 3, Types of operating systems (pp. 3-1 to 3-2), checked against (https://vtda.org/bits/other/US_Navy/NEETS/US%20Navy%20NEETS%20-%20Module%2022-Introduction%20to%20Digital%20Computers%20NAVEDTRA%2014194.pdf) · Facts