CMP320 Operating Systems Operating System Structures: FALL 2017 Syed Abrar Ahmad
CMP320 Operating Systems Operating System Structures: FALL 2017 Syed Abrar Ahmad
Operating Systems
Lecture 03
• OS Structures
– Simple Structures
– Layered Approach
– Micro kernels
– Module Based
MS-DOS
10/16/2017 CMP320 PUCIT Abrar Shah 5
Simple Structure (cont…)
• UNIX consists of two separate parts, System Programs and the
Kernel
• Every thing below the system call interface and above the physical
h/w is the kernel. Provides the file system, CPU scheduling, memory
management, and other operating-system functions
• An enormous amount of functionality combined in one level, UNIX is
difficult to enhance as changes in one section could adversely affect
other areas
Applications
User Mode
Standard Libs
Kernel Mode
Hardware
10/16/2017 CMP320 PUCIT Abrar Shah 6
Layered Approach
• OS is broken up into a number of layers (levels)
each built on the top of other
• The Bottom layer is the hardware layer and the
topmost layer ( layer N) is the user interface
• A typical layer consists of data structures and a
set of routines to service the layer above it
• Examples:
• THE operating system by Dijkstra
• IBM’s OS/2
Microkernel Structure
Dennis Ritchie
Command Description
cp [-frip] srcdirs/files destdir/files Copies files and directories
mv [-fri] srcdirs/files destdir/files Move /Cut files and directories
rm [-fri] dirs/files Delete files and directories
find /etc/ -name passwd Search for file in a directory hierarchy
tar cvf archname.tar dirs/files Archive dirs/files in the current working directory
tar tvf arcname.tar View archived files/dirs in archname.tar
tar xvf archname.tar Extract archived files/dirs in the current working directory