Professional Documents
Culture Documents
Unit-I OSY
Unit-I OSY
Lesson -1
UNIT OUTCOMES
1.Explain the functioning of given component of OS
2. Explain characteristics of the given type of operating system.
3. Identify type of the operating system suitable for the given type of
application.
4. Execute command on command line for the given task.
1.1 Definitions of Operating system
4. Device Management –
a) To open, close and write device drivers.
b) Communicate, control and monitor the device drivers
5. Secondary storage Management –
a) Managing the free space available on the secondary storage.
b) Allocation of storage space when new files have to be written
c) Scheduling the requests for memory access
6. Protection and security –
a) Assigns the user authentication
b) Assigns file attributes such as read, write, Hide, encryption.
c) Facilitates backup of data
7. User interface or Command interpreter –
a) Provides interface between user and computer hardware. Either through
set of commands (CUI) or Graphically (GUI)
8. Booting the Computer –
a) Provides mechanism for cold booting and hot booting computer.
9. Performs the basic computer tasks –
a) OS manages peripheral devices like mouse, keyboard, monitor, printer etc.
b) OS facilitates plug and play device and detect and configured without any user
interference.
Operations /Functions/Tasks of Operating System
Functions :
1.Transferring input from input devices to memory and from memory to CPU
2.Shifting processed data from CPU to output devices.
3.Show messages on the screen in case of input as well as output
4.Control input devices and output devices.
5.Loading of application programs from storage devices into main memory.
6.Copy or move data from one storage devices to other.
7.Display appropriate messages by giving the current status of peripherals and
processes.
8.Execution of programs and user instruction and protection of storage devices from
overwriting.
9.Maintain details of files or directories with their respective details.
10.To provide security to user’s data, programs and other files.
Resource Management –
1, OS allocates computer resources such as CPU time, main
memory, secondary storage and input and output devices for use
2. The OS manages all kind of resources using schedulers
3. CPU scheduling algorithms are used for better utlisation of
CPU.
Security and Protection-
1. Security and protection measures to prevent a user from illegally
using resources in a computer system.
2. Security is a measure taken to maintain the integrity of the
system and corresponding data.
3. Security provides both internal and external protection to the
system.
4.Protection refers to the mechanism for controlling the access of
the resources of the system .
5. Security and protection can be done by ensuring integrity,
confidentiality and availability in the operating system. The system must
be protect against unauthorized access, viruses, worms etc.
Lesson - 3
Views of OS
An operating system is a construct that allows the user application
programs to interact with the system hardware.
Operating system by itself not only provides functions but it also
provides atmosphere in which different applications and programs can do useful
work.
OS can be observed from the point of view of the user or the system.
This is known as user view and system view respectively.
1.User view:
User view depends on the system interface. The goal of any operating
system is to maximise the work and minimise the effort of the user.
continued
Most of the systems are designed to be operated by a single user, however in some
system multiple users can share resources memory. In these cases operating system
is designed to handle available resources among multiple users and CPU efficiently.
In embedded systems (automated system) user view is not present.
Operating system gives an effect to the user as if the processor is dealing only with
the current task, But in the background , processor is dealing with several processes.
In user view OS provides a way to make user to maximise work task and minimise
efforts.
System View :
From the system point of view operating system is a program involved with
hardware. Os is especially deals with the operation and control of I/O devices.
Operating system allocates memory resource among various processes. It controls
the sharing of resources among programs.
It prevents improper usage error and handle deadlock conditions. OS runs all the
time in the form of kernel. Control program manages the execution of user program.
OS can be viewed as a way to make using hardware easier.
1.2 Different type of Operating system
1. Batch operating system 2. Multiprogrammed OS 3. Time shared OS 4.
Multiprocessor OS 5. Distributed OS 6. Real Time OS 7. Mobile OS(Android,
IOS)
2. Batch operating system :
Batch processing is a technique in which an OS collects the programs and
data together in a batch before processing.
Each user prepares his job on an off-line device like punch cards and submits
it to the computer operator. To speed up processing, jobs with similar needs
are batched together and run as a group.
An OS does the following activities related to batch processing
* The OS defines a job which has predefined sequence of commands,
programs and data as single unit.
* Jobs are processed in order of submission i.e. First come first serve.
When job completes its execution, its memory is released and the output for
the job gets copied into an output spool for later printing or processing.
* Batch monitor program in main memory is used to implement batch
processing system. Batch monitor is also called kernel, Kernel resides in one
part of the computer main memory. Batch monitor controls the sequence of
events.
CPU
+
OS
Monitor
Batch Operating System
continued
Advantages :
1. Move much of the work of the operator to the computer.
2. Increased performance since it was possible for job to start as soon as the as
the previous job is finished, without any manual intervention
When two or more programs reside in memory at the same time for
sharing processor is referred as multiprogramming. The operating
system keeps several jobs in memory at a time. This set of jobs is a
subset of the jobs kept in the job pool. The operating system picks and
begins to execute one of the
Multiprogramming assumes a single shared processor.
Multiprogramming increases CPU utilization by organizing jobs so that
the CPU always has one to execute jobs in the memory.
continued
3. Less time taken to process the jobs More time taken to process the jobs