Chapter#01 - Introduction To OS
Chapter#01 - Introduction To OS
Introduction
COURSE INSTRUCTOR:
ENGR. FARHEEN QAZI, ENGR. SYED HARIS MEHBOOB, MS. FALAK SALEEM
20% Assignments/Quizzes
3 Assignments
3 Quizzes
30% Mid-Term
Pre-Mid course included
50% Final
Pre-Mid + Post-Mid course included
Tentative Course Outline
TEXT BOOK:
Abraham Silberschatz, Peter B. Galvin, Greg Gagne, Operating
System Concepts, 10th Edition, 2018.
REFERENCE BOOKS:
William Stallings, Operating System, Design, internals and
Implementation, 9th Edition, 2018.
Chapter 1: Introduction
OS is a resource allocator
Manages all resources
Decides between conflicting requests for efficient and fair
resource use
OS is a control program
Controls execution of programs to prevent errors and
improper use of the computer
Operating System Definition (Cont.)
Computer-system operation
One or more CPUs, device controllers connect through common
bus providing access to shared memory
Concurrent execution of CPUs and devices competing for memory
cycles
Computer-System Operation
Process Management
Main Memory Management
File Management
I/O System Management
Secondary Management
Protection System
Command-Interpreter System
Process Management
The I/O operations implemented via DMA also read and write
data in memory.
Program execution
System capability to load a program into memory and to
run it.
Program must be able to end its execution, either
normally or abnormally (indicating error).
I/O operations
Since user programs cannot execute I/O operations
directly, the operating system must provide some means
to perform I/O.
Operating System Services (Cont.)
File-system manipulation
Program capability to read, write, create, and delete files.
Communications
Exchange of information between processes executing
either on the same computer or on different systems tied
together by a network. Implemented via shared memory or
message passing.
Error detection
Ensure correct computing by detecting errors in the CPU
and memory hardware, in I/O devices, or in user programs.
Additional Operating System Functions
Additional functions exist not for helping the user, but rather for
ensuring efficient system operations.
Resource allocation
Allocating resources to multiple users or multiple jobs running at
the same time.
Accounting
Keep track of and record which users use how much and what
kinds of computer resources for account billing or for
accumulating usage statistics.
Protection
Ensuring that all access to system resources is controlled.
Security of the system from outsiders is also important.
System Calls
• Process control
– create process, terminate process
– end, abort
– load, execute
– get process attributes, set process attributes
– wait for time
– wait event, signal event
– allocate and free memory
Types of System Calls
• File management
– create file, delete file
– open, close file
– read, write, reposition
– get and set file attributes
• Device management
– request device, release device
– read, write, reposition
– get device attributes, set device attributes
– logically attach or detach devices
Types of System Calls (Cont.)
• Protection
– Control access to resources
– Get and set permissions
– Allow and deny user access
• Information maintenance
– get time or date, set time or date
– get system data, set system data
– get and set process, file, or device attributes
Transition from User to Kernel Mode
Process and job control
MS-DOS Execution
Process and job control
UNIX Running Multiple Programs
Process and job control
Communication Models
Communication Models
Open-Source Proprietary
Purchased with its source code Purchased without its source code
User can get open operating User must pay to get the
proprietary operating system
system for free of charge
User can modify the OS
User can modify the OS
User must have a license from
User can install OS freely into vendor before install into
any computer computer
No one s responsible to the OS Full support from the vendor if
anything happened to the OS
Linux, Ubuntu, fedora etc.
Windows Vista, Windows 10 etc.
End of Chapter 1
Thank you