Computer multitasking

In computing, multitasking is a method by which multiple tasks may execute, apparently simultaneously, on a single computer processor. Multitasking on a single CPU is accomplished by rapidly alternating between several active tasks, also known as processes. These alternations, called "context switches", are either voluntarily initatiated by a running process, or by an external event such as a hardware interrupt.

The first efforts to create multitasking systems took place in the 1960s, although the process was then referred to as "time-sharing". The purpose of these early efforts was to allow multiple users to share a single mainframe computer, thereby extending its usefulness. The term "time-sharing", which refers specifically to the sharing of a computer by multiple users, has become essentially obsolete, in favor of the more general "multitasking".

Early multitasking systems consisted of suites of related applications that voluntarily ceded time to each other. This approach, which was eventually supported by many computer operating systems, is today known as Cooperative multitasking. Although it is rarely used in larger systems, Microsoft Windows prior to Windows 95, and MacOS prior to OS X both used cooperative multitasking to enable the running of multiple applications simultaneously.

Cooperative multitasking has many shortcomings. For one, a cooperatively multitasked system must rely on each process to regularly give time to other processes on the system. A poorly designed program, or a "hung" process, can effectively bring the system to a halt. The design requirements of a cooperatively multitasked program can also be onerous for some purposes, and may result in irregular (or inefficient) use of system resources.

To remedy this situation, most time-sharing systems quickly evolved a more advanced approach known as preemptive multitasking. On a such a system, a hardware system (not included on many early machines) can "interrupt" a running process, and direct the processor to execute a different piece of code. A system designed to take advantage of this feature need not rely on the voluntary ceding of processor time by individual processes. Instead, the hardware interrupt system can be set to "pre-empt" a running process and give control back to the operating system software, which can later restore the pre-empted process at exactly the point where it was interrupted. Programs "pre-empted" in such a manner need not explicitly give time to other processes; as far as a programmer is concerned, software programs can be written as though granted uninterrupted access to the CPU.

Pre-emptive multitasking allows the computer system to more reliably guarantee each process a regular "slice" of operating time. It also allows the system to rapidly deal with important external events like incoming data, which might require the immediate attention of one or another process.

At any specific time, processes can be grouped into two categories: those that are waiting for input or output (called "I/O bound"), and those that are fully utilizing the CPU ("CPU bound"). In early systems, processes would often "poll", or "busywait" while waiting requested input (such as disk, keyboard or network input.) During this time, the process was not performing useful work, but still maintained complete control of the CPU. With the advent of interrupts and preemptive multitasking, these I/O bound processes could be "blocked", or put on hold, pending the arrival of the necessary data, allowing other processes to utilize the CPU. As the arrival of the requested data would generate an interrupt, blocked processes could be guaranteed a timely return to execution.

Although multitasking techniques were originally developed to allow multiple users to share a single machine, it soon became apparent that multitasking was useful regardless of the number of users. Many operating systems, for mainframes down to single-user personal computers, have recognized the usefulness of multitasking support for a variety of reasons. Multitasking makes it possible for a single user to run multiple applications at the same time, or to run "background" processes while retaining control of the computer.

Another reason for multitasking was in the design of real-time computing systems, where a number of possibly unrelated external activities needed to be controlled by a single processor system. In such systems a hierarchical interrupt system was coupled with process prioritisation to ensure that key activities were given a greater share of available process time.

Over the years, multitasking systems have been refined. Modern operating systems generally include detailed mechanisms for prioritizing processes, while multi-processing has introduced new complexities and capabilities. Further developments in program design have introduced the concept of "threads", which are independent sub-tasks that share a single process's memory space.

See also:



In the News

Genetic Variant May Explain Why Women Develop Multiple Sclerosis More
Why do women develop multiple sclerosis (MS) almost twice as often as men? Physicians have long been intrigued by this fact -- and now a Mayo Clinic-led international research team has identified a genetic variation that may explain it.

United States Small Business Administration (SBA): Hurricane Katrina D
Fact sheets and related information about disaster loans available to individuals and small businesses following Hurricane Katrina. Includes disaster notices detailing covered parishes and counties, loan information with terms and amounts, and a list of SBA disaster recovery centers in Louisiana, Mississippi, and Alabama. From the United States Small Business Administration (SBA).

Obesity Research Boosted By Watching Hunger In The Brain
Scientists can now measure how full or hungry a mouse feels, thanks to a new technique which uses imaging to reveal how neurons behave in the part of the brain which regulates appetite. Researchers hope the technique, which uses magnetic resonance imaging, will enable a far greater understanding of why certain people become obese when others do not, and why different people have different appetites.

Inevitable Corruption of Indicators and Educators Through High-Stakes
This paper describes factors leading to corruption in K-12 standardized testing, such as cheating by teachers, administrators, and students, "teaching to the test"(often cutting out creative curriculum elements), and exclusion of low performers from the test process. From the Education Policy Studies Laboratory, Arizona State University. Opens directly into a PDF document.

Dan Rather: America's News Anchor
Profile of CBS News anchor Dan Rather, from a British point of view. Features a chronology of his career, a video clip on Rather's career, and links to news stories about Rather's retirement announcement and other topics related to Rather and CBS. From the British Broadcasting Corporation (BBC).

Stem Cell Injection Protects Against Nerve Cell Death After Stroke, St
Scientists have tested cellular therapy for ischemic stroke on rats. Intravenous transplantation of mesenchymal stem cells was found to restore cerebrum blood supply and protect nerve cells from death.

Ultrasound-guided Biopsies Are Safe Alternative To Endoscopic Biopsies
Ultrasound-guided percutaneous biopsies are a safe and effective alternative to endoscopic biopsies for obtaining samples in the pancreas, a new study shows.

Discovery Will Aid Identification Of Misregulated Genes In Rett Syndro
Adrian Bird of the University of Edinburgh and colleagues report today in the online issue of Molecular Cellthat the "Rett Syndrome protein", MeCP2, only binds to genes with a specific sequence of nucleotide bases. This knowledge will aid in the identification of the genes that are regulated by the gene MECP2. This work was supported, in part, by the Rett Syndrome Research Foundation (RSRF).

Documenting Our Past: The Teenie Harris Archive Project
Teenie Harris' "40-year career with the Pittsburgh Courier, one of the largest and most influential Black newspapers in the country, began as the nation emerged from the Depression and ended with the Civil Rights Movement. Numbering upwards of 80,000 images [of which 1,400 are shown here], this archive represents the largest single collection of photographic images of any Black community in the United States -- or the world, for that matter."From the Carnegie Museum of Art, Pittsburgh.

Indian Ocean Maps
A collection of digitized maps of the Indian Ocean region, including maps of individual countries and detailed maps of specific regions such as Sri Lanka, the Seychelles, the Maldives, Madagascar, and Mauritius. Many of the maps are from the U.S. Central Intelligence Agency (CIA). From the Perry-Castaņeda Library Map Collection at the University of Texas at Austin.


MP3 Music Downloads

Preview songs, Download Free Music,Burn CDs at ITunes.com
iTunes_RGB_9mm

 


Google




InformationQuickFind.com - Find Information Fast

Links