In computer technology, multitasking is defined by a process, in which multiple tasks share common processing resources like CPU. In the single tasking computer, the CPU executes task at any point in time. That means task utilizes the whole resource of the CPU. This reduces the efficiency of the CPU. Multitasking helps increase the utilization of CPU by scheduling multiple tasks. The method by which the CPU switched from task to another is named context switch. Parallel computing, in which plenty of calculations are executed simultaneously, is accomplished through frequent context switching.
Scheduling Strategies
There are mainly three types of strategies, namely:
1. Multiprogramming strategy: In this strategy, the currently executing task keeps getting executed till it performs an activity that demands waiting for an outside event or until the computer's scheduler forcefully takes the walking task out of the CPU. CPU utilization is maximized through multiprogramming strategy.
2. Time sharing strategy: As per this strategy, the currently executing task releases the CPU either voluntarily or by an outside event like a hardware interrupt. Time sharing strategy permits several programs to run simultaneously.
3. Real time strategy: In actual time strategy, the waiting tasks are allotted CPU time when an outside event takes place. This type of strategy is adopted to control mechanical devices.
Multiprogramming features
Apportioning the computer method resources to over program is called multiprogramming. Before this know-how was invented, time & processing resources were often squandered when a single task awaited human intervention or other information input/output operations. Optimization of the use of the computer method was the main motive behind the development of multiprogramming know-how. Later the invention of virtual memory & virtual machine know-how further enhanced the application of multiprogramming.
Features of cooperative multitasking/time-sharing
Cooperative multitasking/time-sharing is a special type of multitasking/time-sharing in which the current task releases the CPU & allows other tasks to utilize CPU. This idea was employed by both of Microsoft Windows & MAC OS to enable multiple programs to be executed simultaneously. A cooperatively multitasking method depends on each method regularly apportioning time to other processes on the method. That is reason why a shabbily designed program can eat up all of the CPU time for itself or make the whole method hang. All application programs must be tested thoroughly & certified for use in check surroundings before being installed on the multitasking method.
Features of preemptive multitasking/time-sharing
In the computing method, preemption is defined as the operation of temporarily interrupting a task being executed by a computer method, without requiring its consent, & with the purpose of resuming the task at a later time. Such an operation is named context switch. Preemptive multitasking permits the computer method to more reliably make positive each high priority method a regular period of processor time. It also helps the method deal with important outside events which might require prompt attention. Preemptive multitasking sometimes might delay some low priority tasks, which could make the method hang. In that case, online PC support could be of immense help.
Application Multi-threading
Application multi-threading is defined as the method by which the application utilizes over processor to execute multiple tasks simultaneously. Multi-thread applications can run on single core processor also but slowly since multiple threads use the same hardware resource. The idea behind the invention of thread was that the most efficient way for cooperating processes to exchange information would be to share their whole memory space. So threads could be defined as processes that run in the same memory context. Sharing the same memory space by different multi-threads might cause issues which could be resolved through online computer support.
Selasa, 19 April 2011
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar