C#4 - Operating Systems
C#4 - Operating Systems
Lecture slides are adapted/modified from slides provided by the textbook, Computer
Science: An Overview by J. Glenn Brookshear and Dennis Brylow
publisher Pearson
Contents
2
Functions of Operating Systems
3
Evolution of Shared Computing
Batch processing
Interactive processing
Requires real-time processing
Time-sharing/Multitasking
Implemented by Multiprogramming
Multiprocessor machines
Load balancing
Scaling
Embedded OS
4
5
6
Batch processing
7
Batch processing
8
Interactive processing
9
10
11
Multi tasking processing
P1, P2, P3 Run Run Run Wait Run Run Run Wait
12
Evolution of CPU Utilization
13
Basic functions of operating
systems
Five basic functions
Starts the computer
Manages
applications
Manages memory
Handles input and
output device
messages
Provides a user
interface for
communication
14
Types of Software
Application software
Performs specific tasks for users
System software
Provides infrastructure for application
software
Consists of operating system and utility
software
15
Software classification
16
System Software
17
The Operating System
18
OPERATING SYSTEM
COMPONENTS
Operating System Components
User Interface: Communicates with users
Text based (Shell)
Graphical user interface (GUI)
Kernel: Performs basic required functions
File manager
Device drivers
Memory manager
Scheduler and dispatcher
20
User - User interface - Kernel
21
User interface
22
Kernel - File Manager
23
Kernel - File Manager
24
Kernel - Memory Manager
25
Kernel - Memory Manager
Virtual memory—uses portion of hard disk to extend RAM
Pages—units of fixed size, contain program instructions and
data
When RAM is full, copies of pages are temporarily stored in a
swap file, a special hard disk file.
Transferring files between RAM and the hard disk—paging
Excessive paging—thrashing
26
Kernel - Memory Manager
27
Kernel - Device drivers
Device drivers—enable communication
between computer and devices
Interrupts—signals created by input and
output devices
Notify the OS when actions are taken
Interrupt handlers (also called interrupt
service routines)—mini-programs that
immediately respond when an interrupt
occurs
28
Kernel - Device drivers
Interrupt vector table—holds responses from
multiple interrupts in RAM, where the OS
processes them in highest to lowest priority
order
Interrupt request (IRQ)—actual interrupting of
an event by an interrupt signal
29
GETTING IT STARTED
Bootstrapping
32
The booting process
The Six Steps of Booting a System
33
The booting process
Step 1: Activate the BIOS and Setup
Program
BIOS (Basic Input Output System) instructions
provide the computer with descriptions of the internal
equipment
BIOS is encoded on ROM (read-only memory)
Does not control external devices
Adjustable energy settings
Setup program
Includes settings that control computer hardware
Do not alter—making incorrect changes to a BIOS device
will cause the system not to boot
34
The booting process
BIOS Settings
Change the Boot Order
Load BIOS Setup Defaults
Remove a BIOS Password
Create a BIOS Password
Change the Date and Time
Change Floppy Drive Settings
Change Hard Drive Settings
Change CD/DVD/BD Drive Settings
View Amount of Memory Installed
Change the Boot Up NumLock Status
Enable or Disable the Computer Logo
Enable or Disable the Quick Power On Self Test (POST)
35
The booting process
36
The booting process
37
The booting process
38
The booting process
39
The booting process
40
COORDINATING MACHINE’S
ACTIVITIES
Processes
42
Process Administration
43
Time-sharing
44
HANDLING COMPETITION FOR
RESOURCES
Handling Competition for
Resources
Semaphore: A “control flag”
Critical Region: A group of instructions
that should be executed by only one
process at a time
Mutual exclusion: Requirement for
proper implementation of a critical region
46
Deadlock
47
A deadlock resulting from competition
for nonshareable railroad intersections
48
Security
49
Security
50
QUESTIONS AND ANSWERS
51
Quiz
52
Quiz
53
Quiz
54
Quiz
55
Quiz
56
Quiz
57
Quiz
59
Quiz