Professional Documents
Culture Documents
OBJE C TIV E
2
Course Content
Introduction to O S
Introduction to Li nux
Shel l P ro g ra m m i n g
Process m a n a g e m e n t
Signals
https://www.cdac.in/index.aspx?id=DAC&courseid=0# T h re a d s
Memor y m a n a g e m e n t
Virtual Memor y
Deadlock
S e m a p h o re
Inter p ro c e s s co m m u n i cat i o n
3
Text Books
G a g n e / Wiley
References:
4
Introduction to OS
Introduction to O S
▪ What i s O S Introduction to Linux
▪ H ow i s i t di f f e r e nt f r om ot he r appl i c ati on s of t w are ; Shell Programming
Process management
▪ Why i s i t har dw ar e de pe nde nt
Signals
▪ Di f f e r e nt c om pone nt s of O S
Threads
▪ Bas i c c om pute r or gani zat i on r e qui r e d f or O S Memory management
▪ E xam ples of w e l l know n O S i nc l udi ng m obi l e O S , e m be dde d Virtual Memory
s ys t e m O S , R e al T i m e O S , de s kt op O S s e r v e r m ac hi ne O S e t c . Deadlock
▪ H ow ar e t he s e di f f e r e nt f r om e ac h ot he r and w hy Semaphore
Inter process
▪ Func t i ons of O S
communication
▪ U s e r and K e r ne l s pac e and m ode
▪ I nt e r r upts and s ys t e m c al l s
5
W hat is Operating S ystem
It al s o p r o v i d e s a b a s i s for a p p l i c a t i o n p r o g r a m s a n d acts as an i nt e r m e di ar y
6
Different components
A c o m p u t e r s ys t e m c a n b e d i v i d e d r o u g h l y into four c o m p o n e n t s :
the har dw are , the o p e r a t i n g s ys t e m, the a p p l i c a t i o n p r o g r a m s , a n d a u s e r
7
How is it different from other application software
Application software Os
It’s examples are Photoshop, VLC player etc. It’s examples are Microsoft Windows, Linux, MAC
It is developed by using c++, c, assembly languages. It is developed by using virtual basic, c++, c, java.
8
B asic com puter organization required for O S Computer organization is
concerned with the way the
hardware components
Input Output
processor The central processing unit
devices devices
(CPU) that processes data
9
Types Of Os
Multitasking OS
T h e pr o c e s s o r t i m e ( C PU ) w h i c h i s s h a r e d a m o n g m u l t i pl e u s e r s i s t e r m e d a s
time sharing.
Mobile OS
10
Types Of Os
Real Time Os
A r e al - t i m e o p e r a t i n g s y s t e m ( R T O S ) i s a n o p e r a t i n g s y s t e m w i t h t w o k e y Air bag
deployment
f e a t ur e s : pr e d i c t a b i l i t y a nd d e t e r m i n i s m . I n a n R T O S , r e pe a t e d t a s k s a r e depends on
the rapid
p e r f o r m e d w i t h i n a t i g h t t i m e bo u n da r y . R e al - t i m e s y s t e m s a r e u s e d w h e n response time
t h e r e a r e t i m e r e q u i r e m e n t s t h at a r e v e r y s t r i c t l i k e m i s s i l e s ys t e m s , a i r of a real-time
embedded
traffic control systems, robots, etc. system
with Hard
RTOS
Hard RTOS
T h e s e o pe r a t i n g s ys t e m s g ua r a n t e e t ha t c r i t i c al t as k s b e c om pl e t e d w i t h i n a
range of time.
Soft RTOS
T h i s o p e r a t i n g s y s t e m p r ov i d e s s om e r e l ax a t i o n i n t h e t i m e l i m i t . F o r e x a m pl e
Multimedia systems, digital audio systems etc.
11
Different types of Os
EMBEDDED OS
An embedded system can be thought of as a computer hardware system having software embedded in it.
An embedded system can be an independent system or it can be a part of a large system.
An embedded system is a microcontroller or microprocessor based system which is designed to perform a specific task.
microwave ovens, washing machines and dishwashers,télévision sets, Vidéo Game consoles, set-top boxes, atms etc,Smart Tv
DESKTOP OS
The desktop OS is the environment where the user controls a personal computer .Ubuntu ,Windows 10
It is an operating system designed for usage on servers. It is utilized to give services to a large number of clients.
It is a very advanced operating system that can serve several clients simultaneously.
12
Important functions of an Operating System
Process M a n a g e m e n t
Memory M a n a g e m e n t
File Management
Device Management
Protection a n d Security
13
P rocess M anagem ent
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.
• Providing mechanisms for process communication
14
M emory M anagement
• The operating system handles the responsibility of storing any data, system programs, and user
programs in memory. This function of the operating system is called memory management.
• Keeping track of which parts of memory are currently being used and by whom
15
File Management
• A file system is normally organized into directories for easy navigation and usage. These
• Al l ocat es t he resources.
16
D evice M anagement
• Keeps tracks of all devices. Program responsible for this task is known as the I/O
controller.
• Decides which process gets the device when and for how much time.
• De-allocates devices.
17
P rotection and S ecurity
• The operating system uses password protection to protect user data and similar other
• Monitors overall system health to help improve performance. records the response time between service requests
and system response to having a complete view of the system health. This can help improve performance by
• The operating system uses password protection to protect user data and similar other techniques. it also prevents
18
User space and Kernel space
When the computer system is run by user applications like creating a text document or
using any application program, then the system is in user space
The system starts in kernel mode when it boots and after the operating
system is loaded, it executes applications in user mode.
19
D ual mode of operation
Kernel mode
User mode
The operating system puts the CPU in user mode when a user The operating system puts the CPU in kernel mode when it is
program is in execution executing in the kernel
When system runs a user application like creating a text At system boot time, the hardware starts in kernel mode.
document or using any application program, then the system is in on as well.
user mode. The operating system is then loaded and starts user applications
in user mode.
When CPU is in user mode, the programs don't have direct
access to memory and hardware resources. The CPU can execute certain instruction only when it is in the
kernel mode. These instruction are called privilege
instruction
To provide protection to the hardware, we have privileged
system will be in a safe state even if a program in user mode
instructions which execute only in kernel mode
crashes.
20
System Calls
A system call is a method for a computer program to request a service from the kernel of
the operating system on which it is running.
the ke r ne l system .
21
System Calls
fo l l o w i n g situations:
system.
C r e a t i n g a n d m a n a g i n g new p r o c e s s e s .
C r e a t i n g a co n n e c t i o n in the network, s e n d i n g a n d
re c e i v i n g p a c ket s .
R e q u e s t i n g a c c e s s to a ha rdwa re d ev i c e , like a m o u s e or a
printer.
22