.trashed-1740213853-OPERATING SYSTEM1
.trashed-1740213853-OPERATING SYSTEM1
An operating system is an interface between the user and the hardware. It creates the user friendly
environment. Its also a set of complex programs that work together to control execution of application.
1. Memory management – It determines which tasks that can be held by the primary storage and
those to be suspended to the secondary storage.
2. Processor Management – Processes like booting, copy, print from the start to shut down
3. File Management – Involves naming of files and folders, locations and attributes.
4. Input and Output Management – It coordinates between input/output devices and other
peripheral devices such as auxiliary storage devices making sure there are transmitted securely.
5. Communication control and Management – Involves management of various communication
devices and providing an environment within which communication channels operate
Disadvantages
1. Problem of reliability
2. Problem of data communication
3. Question of security and integrity of user programs and data
2. Batch operating system
The users do not interact with the computer directly.
Each user prepares his job on an offline-device and submits it to the computer operator
1. Batch processing
It’s a technique in which an operating system collects the programs and data together in a batch
before processing starts.
2. Multitasking
When multiple jobs are executed by the CPU simultaneously by switching between them.
3. Multiprogramming
Sharing the processor when two or more programs reside in memory at the same time.
4. Spooling
Putting data of various I/O jobs in buffer.
Similar interface
Plug and play – accepts a new hardware once installed
Support multi-tasking and multi-user
Computer architecture
1. Single processor
They have only one processor (micro-computers)
Only one CPU that performs all the activities of the computer system.
The system has other special processors as I/O processes more data quickly.
2. Multiprocessor systems
More than one processors
More than one program are executed
The type of processing is called multiprocessing.
e.g. UNIX, some versions of Microsoft windows
Objectives of an OS
Simple structure – Monolithic operating systems, layered operating systems, virtualized, Ms-D OS and
the original UNIX did not have well-defined structures. There was no CPU execution mode and so error
in application could cause the whole system to crash.
File management
A file is normally organized into directories for easy navigation and usage. These directories may contain
file and other directories.
Program execution
I/O operation
File system manipulation
Communication
Error detection
Resource Allocation
Protection
Characteristics of a file
Importance of a file
Memory Management
Generation of OS
Job 2 running
Job 3 ready
Forth generation
Many different users can use the same machine. (UNIX, Windows NT)
The OS divides its system time into time slice (milliseconds). Gives each user the illusion to have his or
her own machine
OS structure
1. Simple structure
Such as Ms-Doc and the original UNIX did not have well defined structure. There was no CPU
execution Mode and so errors in the application could cause the whole system to crash
2. Monolithic operating system
Its components are organized randomly and any module can call other module without any
arrangement. Applications are spared from the OS itself. Applications run in non-priviledged
processor mode