lec2 oopf
lec2 oopf
Lec 2 op
Fatma oushah
Types of the Operating System
• 1. Cooperative Multitasking
• In Cooperative Multitasking, a program can acquire the
CPU for the required amount of time. A program can
share CPU with any other program that is executing
simultaneously.
• 2. Pre-emptive Multitasking .
• In Pre-emptive Multitasking the OS allocates particular
time to a program. The CPU is preempted if a higher
priority job arrives in a system.
Multiprocessing/ Parallel/ Tightly
Coupled System
• Most systems to date are single-processor
systems; that is they have only one main CPU.
However, multiprocessor systems ( also known
as parallel systems or tightly coupled systems )
are growing in importance. Such systems have
more than one processor in close
communication, sharing the computer bus,
the clock, and sometimes memory and
peripheral devices..
The advantages of Multiprocessor
systems :
• 1. Increased throughput : By increasing the number of
processors, we hope more work done in less time. The
speed-up of N processors is not N; rather it is less than N.
When multiprocessors cooperate on a task, a certain
amount of overhead is incurred in keeping all the parts
working correctly. This overhead, plus contention for
shared resources, lowers the expected gain from additional
processors. 2. Economy of Scale: Multiprocessor systems
can save more money than multiple single processor
systems, because they can share peripherals, mass storage,
and power supplies . If several programs operate on same
set of data, it is cheaper to store those data on one disk and
to have all the processors share them, than to have many
computers with local disks & many copies of the data
Multiprocessing System (Continued…)
• 3. Increased reliability. If functions can be distributed
properly among several processors, then the failure of
one processor will not halt the system, only slow down
it. If we have ten processors and one fails, then each of
the remaining nine processors must pick up a share of
the work of the failed processor. Thus, the entire
system runs only 10 percent slower, rather failing
altogether. This ability to continue providing service
proportional to the level of surviving hardware is called
graceful degradation. Systems designed for graceful
degradation are also called fault tolerant. Types of
multiprocessor systems 1. Symmetric Multiprocessing
• 2. Asymmetric Multiprocessing .
Real-Time Systems