Lecture 1 - OS Intro
Lecture 1 - OS Intro
Bilal Ahmed
1
Course Overview
• Pre-Requisites
• EE-321 Computer Organization and Architecture
• Textbook
• “Operating System Concepts”, By Abraham
Silberschatz, Peter Galvin, and Greg Gagne, 10th Edition,
Publisher: John Wiley and Sons
• Reference Books
• “Operating Systems: Principles and Practice” by Thomas
Anderson, Michael Dahlin, 2nd Edition
•30 % OHTs
•50 % Final Exam
•10 % Assignments (3)
•10 % Quizzes (3)
3
Misc
• Late submission: -10% per day
• Familiarize yourself with policies on
• Plagiarism
• Missing quizzes, assignments, Mids, exams etc
• Attendance
• I grade, F grade, minimum required CGPA
4
Contact
• Email: [email protected]
5
Course Outline
• Operating System - Objectives and Functions
• Synchronization
• Process Scheduling
• Memory Management
• File System
6
Course Objectives
• To provide knowledge how operating systems work
7
Course Learning Outcomes (CLOs)
Sr PLO BT
CLO
No. No. Level*
PLO 4 (Investigation)
PLO 5 (Modern tool usage) √
PLO 6 (The Engineer and Society)
PLO 7 (Environment and Sustainability)
PLO 8 (Ethics)
PLO 9 (Individual and Team Work)
PLO 10 (Communication)
PLO 11 (Project Management)
PLO 12 (Lifelong Learning)
9
Week Topic CLOs
1. Operating System Overview and Services CLO1
2. Operating System Overview and Services CLO1
CLO1
3. Process Management
CLO2
4. Process Management CLO3
5. Threads CLO2
6. Threads CLO3
7. Process Scheduling CLO2
8,9. Process Scheduling CLO3
10. Midterm
11. Process Synchronization CLO2
12. Process Synchronization CLO3
13. Memory Management (Main Memory) CLO3
14. Memory Management (Virtual Memory) CLO3
CLO1
15. File Management
CLO2
CLO1
16. I/O Management
CLO2
CLO2
17. Advanced Topics (Virtualization/ Distributed OS)
18 Final Exam
10
What is an Operating System?
• A program that acts as an intermediary between a user of a
computer and the computer hardware
11
Abstract View of Components of Computer
12
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 applications
and users
• Application programs
• define the ways in which the system resources are used to solve the
computing problems of the users
• Word processors, compilers, web browsers, database systems, video
games
• Users
• People, machines, other computers
13
What Operating Systems Do
• Depends on the point of view
User View
14
What Operating Systems Do (Contd.)
System View
15
Operating System Definition
• No universally accepted definition
• “Everything a vendor ships when you order an operating system” is a
good approximation
• But varies wildly
• “The one program running at all times on the computer” is the kernel,
part of the operating system
• Today’s OSes for general purpose and mobile computing also include
middleware – a set of software frameworks that provide additional services
to application developers such as databases, multimedia, graphics 16
KERNAL
• Kernel is central component of an operating system that manages operations of
computer and hardware
• Kernel loads first into memory when an operating system is loaded and remains
into memory until operating system is shut down again
• Kernel has a process table that keeps track of all active processes
17
OBJECTIVES OF KERNAL
• To establish communication between user level application and hardware
18
Overview of Computer System Structure
19
Computer
Components
Top-Level View
20
Computer System Organization
• Computer-system operation
• One or more CPUs, device controllers connect through common bus providing access
to shared memory
21
Computer System Organization
• Each device controller oversees a specific type of device (for
example, a disk drive, audio device, or graphics display)
• Depending on the controller, more than one device may be
attached
• For instance, one system USB port can connect to a USB hub, to
which several devices can connect
• A device controller maintains some local buffer storage (a
temporary data storage holding place) and a set of special-
purpose registers
• The device controller is responsible for moving the data b\w the
peripheral devices that it controls and its local buffer storage
22
Computer System Organization
23
Computer System Organization
• To start an I/O operations, the device driver loads the appropriate registers
keyboard”)
• The controller starts the transfer of data from the device to its local buffer
• Once the transfer of data is complete, the device controller informs the
24
Computer System Organization
• The device driver then gives control to other parts of the OS,
“device busy”
• But how does the controller inform the device driver that it has
26
BOOTSTRAP PROGRAM
28
HOW OS LOADED
• When the system is powered on, it runs the BIOS program stored in
the read-only memory (ROM)
• The BIOS contains the code to locate and execute the MBR in order to
locate various hard disk partitions and load the OS
• Initially, the BIOS program evaluates the system hardware and checks
the available boot devices containing an MBR
• If no devices are found, the OS does not boot, and the user receives an
error message