Modern Operating System
Modern Operating System
SYSTEM
INTRODUCTION TO OPERATING SYSTEM
Process Management
Main Memory Management
File Management
I/O System Management
Secondary Management
Networking
Protection System
Command-Interpreter System
2: OS Structures 8
OPERATING SYSTEM SYSTEM
COMPONENTS
STRUCTURES
PROCESS MANAGEMENT
A process has resources (CPU time, files) and attributes that must be
managed.
One (or more) threads are the schedulable entities within a process.
2: OS Structures 9
OPERATING SYSTEM System
STRUCTURES Components
MAIN MEMORY MANAGEMENT
· Allocation/de-allocation for processes, files, I/O.
· Maintenance of several processes at a time
· Keep track of who's using what memory
· Movement of process memory to/from secondary storage.
FILE MANAGEMENT
A file is a collection of related information defined by its creator.
Commonly, files represent programs (both source and object forms) and
data.
The operating system is responsible for the following activities in
connections with file management:
• File creation and deletion.
• Directory creation and deletion.
• Support of primitives for manipulating files and directories.
• Mapping files onto secondary storage.
• File backup on stable (nonvolatile) storage media.
2: OS Structures 10
OPERATING SYSTEM System
STRUCTURES Components
I/O MANAGEMENT
· Buffer caching system
· Generic device driver code
· Drivers for each device - translate read/write requests into disk
position commands.
· Disk scheduling
2: OS Structures 11
OPERATING SYSTEM
System
STRUCTURES Components
NETWORKING
· Communication system between distributed processors.
· Getting information about files/processes/etc. on a remote
machine.
· Can use either a message passing or a shared memory model.
How Do These All Fit
PROTECTION Together?
In essence, they all
· Of files, memory, CPU, etc. provide services for
· Means controlling of access each other.
· Depends on the attributes of the file and user
SYSTEM PROGRAMS
· Command Interpreters -- Program that accepts control
statements (shell, GUI interface, etc.)
· Compilers/linkers
· Communications (ftp, telnet, etc.) 2: OS Structures 12
Operating System Functions
It manages the hardware and software
resources of the system. In a
desktop computer, these resources include
such things as the processor, memory, disk
space and more (On a cell phone, they
include the keypad, the screen, the address
book, the phone dialer, the battery and the
network connection).
Operating System Functions
Based on Environment
◦ CUI
◦ GUI
Based on Functions
◦ Real-time operating system
◦ Single-user, single task
◦ Single-user, multi-tasking
◦ Multi-user , multi-tasking
◦ Multiprocessing O/S
◦ Multithreading O/S
◦ Networking O/S
◦ Batch Processing O/S
◦ Distributed O/S
Command User Interface
This operating system is totally command
dependent. One can work on this
environment only if they are familiar with the
respective O/S command
◦ Eg. MS-DOS
Graphical User Interface
GUI - Short for Graphical User Interface, a GUI
Operating System contains graphics and
icons and is commonly navigated by using a
computer mouse. See the GUI definition for a
complete definition. Below are some
examples of GUI Operating Systems.
System 7.x
Windows 98
Windows CE
Real Time Operating System
RTOS is specially designed for embedded
environments such as consumer devices,
automobiles and robotics.
A real-time operating system (RTOS) is an
following features :-
◦ Deal with users logging on
◦ Maintain the network connection to the sercver
◦ Expand the file system to view folders on other
computers
◦ Provide security to separate user accounts from
each other
Batch Operating System
Distributed Operating System
This is one of the modern operating system
It is a O/S that supports distributed
computing
Distributed systems allow users to share
Distributed Computing would be more like the SETI (Search for extra-
terresterial intelligence). Program, where each client works a separate
"chunk" of information, and returns the completed package to a
centralized resource that's responsible for managing the overall
workload.
If you think of ten men pulling on a rope to lift a load, that is parallel
computing. If ten men have ten ropes and are lifting ten different
loads from one place to consolidate at another place, that would be
distributed computing.
In Parallel Computing all processors have access to a shared memory.
In distributed computing, each processor has its own private memory
Advantages of Distributed Systems
Resource Sharing
Computation Speedup
Reliability
Communication
Resource Sharing
If number of different sites are connected to
one another, then a user at one site may be
able to use the resources available at another.
For. E.g. a user at site A may be using a laser
printer located at site B
Computation Speed
If a particular computation can be partitioned
into subcomputations that can run
concurrently then a distributed system allows
us to distribute the subcomputations among
various sites.
A clustered system uses multiple CPUs to complete a task. It is different from parallel
system in that clustered system consists of two or more individual systems tied
together. The clustered computers share storage and are closely linked via LAN
networking.
The clustering is usually performed to provide high availability. A layer of cluster
software runs on cluster nodes. Each node can monitor one or more nodes over the
LAN.
The monitored machine can fail in some cases. The monitoring machine can take
ownership of its storage. The monitoring machine can also restart applications that
were running on the failed machine- The failed machine can remain down but the users
will see a brief of the service.
Currently no AmigaOS
AmigaOS Amiga Commodore
history.
Red Hat Linux Unix and Linux hist Various Red Hat
ory.