OS Notes
OS Notes
Single-Processor Systems
Multiprocessor Systems
Clustered Systems
Single-Processor Systems
These special processors run a limited instruction set and do not run
user processes.
Increased throughput:
- get more work done in less time.
- The speed up ratio with N processors is not N,
rather it is less than N.
Economy of scale:
- multiprocessor system can cost less than equivalent multiple
single-processor systems
Increased reliability
- if functions are distributed among several processors, then the
failure of one processor will not halt the system, only slow it down.
Each blade processor board boots independently and runs its own
operating system.
Clustered systems
Clustered systems gather together multiple CPUs to accomplish computational
work.
These type of system are composed of two or more individual systems coupled
together.
It shares the storage and are closely linked via a local area network(LAN).
Each node can monitor one or more of the others(over the LAN).
If the server fails, the hot-standby host becomes the active server.
Memory Management
Main memory is a large array of words or bytes, where each word or
byte has it own address.
Its
a repository where the data can be accessed and shared by the
CPU and I/O devices quickly.
Both read and write data from main memory during the data-fetch
cycle.
The main memory is the only large storage device that the CPU is
able to address and access directly.
For e.g.
Storage Management
OSprovides uniform, logical view of information storage
Abstracts physical properties to logical storage unit - file
Each medium is controlled by device (i.e., disk drive, tape drive)
The OS maps files onto physical media and accesses these files via
the storage devices.
File-System management
Itis visible component of an operating system.
- information can be stored on different physical medium such as
magnetic disk, optical disk and magnetic tape.
Mass-Storage Management
Usually disks used to store data that does not fit in main memory or
data that must be kept for a “long” period of time.
For e.g
data transfer from cache to CPU and registers is usually a
hardware function.
but transfer of data from disk to memory is usually controlled by
the OS.
For e.g
an integer A that is to be incremented by 1 is located in file B and
file B resides on magnetic disk.
Migration of Integer A from Disk to Register
Multitasking environments must be careful to use most recent value, no matter where it is stored
in the storage hierarchy
Multiprocessor environment must provide cache coherency in hardware such that all CPUs have
the most recent value in their cache
Distributed environment situation even more complex
Several copies of a data can exist
Various solutions covered in Chapter 17
I/O Subsystem
One purpose of OS is to hide peculiarities of hardware devices from
the user
I/O subsystem responsible for
Memory management of I/O including buffering (storing data
temporarily while it is being transferred), caching (storing parts of
data in faster storage for performance), spooling (the overlapping
of output of one job with input of other jobs)
General device-driver interface
Drivers for specific hardware devices
Only the device driver knows the peculiarities of the specific device
to which it is assigned.
It is the job of security to defend a system from external and internal
attacks.
The protocols that create a distributed system can greatly affect that
system’s utility and popularity.
A network is a communication path between two or more systems.
Distributed systems depend on networking for their functionality.
Networks vary by the protocols used, the distances between nodes
and the transport media.
The computer must analyze the data and possibly adjust controls to
modify the sensor inputs.
The second issue is the speed of the processor used in the devices.
Processors in handheld run at a fraction of the speed of a processor
in a PC.
The tasks like reading email and browsing web pages must be
condensed into smaller displays.