Professional Documents
Culture Documents
Operating
Systems
Lecture 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
Computer Startup
7
One or more
CPUs, device Outside
controllers world
connect through
common bus
providing access
to shared Video Hard drive USB Network
controller controller controller controller
memory
Concurrent
execution of
CPUs and CPU
devices Computer internals
competing for (inside the “box”)
Memory
memory cycles
Computer system operation
9
controller
Common functions of interrupt
10
occurred:
Polling: poll (send a signal out to) each device
to determine which one made the request.
vectored interrupt system: an interrupt signal
.
.
. .
.
. . .
.
.
Documents Phrase Grammar Extraction SOM
Phrase Feature Vectors
System Calls
+)
Mostly accessed by programs via a high-level
1) 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
Dump memory if error
Debugger for determining bugs, single step
execution
Locks for managing access to shared data between
Types of System Calls
2) File management
create file, delete file
open, close file
read, write, reposition
get and set file attributes
3) 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.)
4) Information maintenance
get time or date, set time or date
get system data, set system data
get and set process, file, or device attributes
5) Communications
create, delete communication connection
send, receive messages if message passing model to host
name or process name
From client to server
Shared-memory model create and gain access to memory
regions
transfer status information
Types of System Calls (Cont.)
6) Protection
Control access to resources
Get and set permissions
Allow and deny user access
Examples of Windows and Unix System
Calls
21
Operating System Structure
22
Monolithic High L L L
Layered M L L M
Microkernel M M H M
Modules L H H H
Simple Structure (Monolithic) -- MS-
23
DOS
The entire operating system runs as a single program in
kernel mode. The operating system is written as a
collection of procedures, linked together into a single large
executable binary program.
This organization suggests a basic structure for the
operating system:
A main program that invokes the requested service procedure.
messages messages
microkernel
hardware
Modules
27
subsystem personalities
Evolution of Operating Systems -
1
29
Microsoft DOS
IBM PC + DOS/BASIC by Bill Gates and Paterson
80386 and 80 486 + MS/DOS - Command line based
Engelbart invented the Graphical User Interface, complete
with windows
Windows = MS DOS + GUI
Evolution of Operating Systems -
3
31
Cloud computing
Volume, Velocity, and Variety (VVV) of Big
Data
Systems connected by high-speed networks?
Wide area resource management?
Withthe onset of new devices like wearables, which
includes, Smart Watches, Smart Glasses, VR gears etc,