A1841452586 - 23631 - 5 - 2019 - Unit 1 Introduction To Os
A1841452586 - 23631 - 5 - 2019 - Unit 1 Introduction To Os
use
OS is a control program
Controls execution of programs to prevent errors and improper use
of the computer
Operating system goals:
Execute user programs and make solving user problems easier
Make the computer system convenient to use
Use the computer hardware in an efficient manner
An operating system is the one program that is running at all the times
on the computer- usually called the kernel.
Computer System Structure
Computer system can be divided into four components
Hardware – provides basic computing resources
CPU, memory, I/O devices
Operating system
Controls and coordinates use of hardware among various
video games
Users
People, machines, other computers
Four Components of a Computer
System
Functions of operating system
Following are some of important functions of an operating
System.
Memory Management
Processor Management
Device Management
File Management
Security
Control over system performance
Job accounting
Error detecting aids
Coordination between other software and users
Resource Management(For how much time the
resources(hardware) must be allocated to the user.
It is used in parallel processing
Process management:Multiple processes are executed at
the same time.(CPU scheduling)
Storage management(Hard Disk):How to store the data
efficiently& effectively is done by the operating system.
(File System).
Memory Management:(RAM) :allocation and
deallocation of RAM.
Process->RAM->CPU
Memory Management
An Operating System does the following activities for
memory management −
Keeps tracks of primary memory, i.e., what part of it are
in use by whom, what part are not in use.
In multiprogramming, the OS decides which process
will get memory when and how much.
Allocates the memory when a process requests it to do
so.
De-allocates the memory when a process no longer
needs it or has been terminated.
Processor Management
In multiprogramming environment, the OS decides
which process gets the processor when and for how
much time. This function is called process
scheduling. An Operating System does the following
activities for processor management −
Keeps tracks of processor and status of process. The
program responsible for this task is known as traffic
controller.
Allocates the processor (CPU) to a process.
De-allocates processor when a process is no longer
required.
Device Management
RAM
Advantages Of Multiprocessing
Increased Throughput − By increasing the number
of processors, more work can be completed in a unit
time.
Cost Saving − Parallel system shares the memory,
buses, peripherals etc.
Multiprocessor system thus saves money as
compared to multiple single systems.
Multitasking
Multitasking has the same meaning of
multiprogramming but in a more general sense, as it
refers to having multiple (programs, processes, tasks,
threads) running at the same time. This term is used
in modern operating systems when multiple tasks
share a common processing resource (e.g., CPU and
Memory)
Multitasking
Multitasking is an extension to Multiprogramming
OS.
The Jobs will be executed in the time sharing mode.
Multitasking OS
Multitasking/Timesharing Os
Preemptive
(Responsiveness)
Some Specific time limit must be given to