Unit 1 - Basic of Operating System
Unit 1 - Basic of Operating System
System Concepts
• the earliest operating systems varied wildly from one computer to the next, and
while they did make it easier to write programs, they did not allow programs to be
used on more than one mainframe without a complete rewrite.
• In the late 1960s, the first version of the Unix operating system was developed which
was Written in C.
• The name Windows was first used in 1985 when a graphical user interface was
created and paired with MS-DOS.
Components of Operating System
Operating systems are built out of two main parts:
• The kernel
• System programs
• It manages computer resources, and it handles requests from system programs and applications.
• These are the programs necessary to connect the kernel to user applications and peripheral
devices.
• Device drivers, file systems, networking programs, and system utilities like disk defragmenters are
all examples of system programs.
Objective Operating System
Convenience:
Efficiency:
• It provides the computer system resources with efficiency and in easy to use.
Ability to develop:
• It should be built in such a way that it permits the efficient development, testing
and installation of new applications.
Functions or Features of Operating System
• Device Management
Processor Management
• A program under execution is said to be process.
• Operating System keeps tracks of processor and status of process. Allocates and De-
allocate the processor (CPU) to a process according to requirements.
• Decides which process gets the device when and for how much time.
File Management
• File Management of operating system also allows users to create, move, rename and delete
folders and files by specific name along with extension, search for a given file and list file
information.
Security
• It prevents unauthorized access to programs and data using password and similar other
techniques.
Functions or Features of Operating System
System Performance Management
• Recording delays between request for a service and response from the system.
• OS monitors the health of system’s hardware, giving information about how busy CPU is,
or how quickly hard drives retrieve data.
Job accounting
• Keeping track of time and resources used by various jobs and users.
• These require to pay for the license to use their Operating systems.
Types of Operating System
Real Time
Operating System
Types of Operating System
Batch Operating System
• This type of operating system do not interact with the
computer directly. There is an operator which takes
similar jobs having same requirement and group them
into batches. It is the responsibility of operator to sort the
jobs with similar needs.
• The main function of a batch processing system is to
automatically keep executing the jobs in a batch. This is
the important task of a batch processing system i.e.
performed by the 'Batch Monitor' resided in the low end
of main memory.
• Examples of Batch based Operating System: Payroll
System, Bank Statements etc.
Types of Operating System
Advantages of Batch Operating System
• CPU is often idle, because the speed of the mechanical I/O devices is slower than the CPU.
• The other jobs will have to wait for an unknown time if any job fails
Types of Operating System
Multiprogramming Operating Systems
• In multiprogramming, multiple programs (or jobs) of
different users can be executed simultaneously by
switching between them.
• 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 jobs in the memory.
• Then some jobs may have to wait for certain tasks (such as I/O operation), to complete.
• In multi-programmed system, the CPU switches to second job and begins to execute it.
Similarly, when second job needs to wait, the processor is switched to third job, and so on.
The processor also checks the status of previous jobs, whether they are completed or not.
Types of Operating System
Multiprogramming Operating Systems
Types of Operating System
Advantages of Multiprogramming Operating System
• Takes less time to complete the same jobs than the simple batch system
• CPU always remains busy to run one of the jobs until all jobs complete their execution.
• OS must be able to load multiple programs into separate areas of the main memory and
provide the required protection to avoid the chance of one process being modified by
another one.
• One must have to take care of security and integrity of user programs and data
1. Both of these concepts are for single CPU. Both of these concepts are for single CPU.
2. Concept of Context Switching is used. Concept of Context Switching and Time Sharing is used.
• It is easily scalable.
• It is defined as an operating system known to give maximum time for each of the critical
operations that it performs.
• A real-time operating system (RTOS) is any operating system (OS) intended to serve real-time
applications that process data as it comes in, typically without delays.
• Example : Smart Home, Automatic Car, microwave oven, Washing machine, digital cameras
Types of Operating System
Advantages of Real Time Operating System
• Maximum Consumption
• Task Shifting
• Focus on Application
• Less Error
• Limited Tasks
• Low multi-tasking
User Operating System Interface
Two types of Interface:
• Command Line Interface (CLI)
• This type of interface has the drawback that it requires the operator to remember a range of
different commands and is not ideal for novice users.