Media and Storage
Media and Storage
Today
Operating systems
What are they for
What do they do
Not really
I wouldn’t use that OS
But what does that mean and why?
Is there something I’m looking for?
Applications
Librarie
s
System Function
Calls
Kernel
Hardware Abstraction
Device Device
driver driver
O/S structure
Applications : programs used by users
or other programs
Libraries : re-usable code implementing
useful functions
System calls : points of interaction with
the kernel
O/S structure
Is this acceptable ?
Operating System
Performs system management
Scheduling
Resource access control
Resource allocation
Share fairly
In groups work out the best method for
Sharing a cake when
2 people love the cake and what to have more
than the other
3 people love the cake and what to have more
than the other
O/S Critical functions :
Scheduling
Scheduling - deciding which program
(process) should be running now
Running Waiting
Blocked
Scheduling
Only one process can be running at any
time
O/S “timeslices” to create appearance
of parallelism
Data for waiting or blocked processes is
held in RAM or swapped to disk
O/S Critical functions :
Filesystem
File-system management
Managing storage devices
Deciding where to write data on
disk, memory devices, etc.
Detecting device errors
Tracking used (allocated) space
Tracking unused (unallocated) space
Dealing with file deletion
Filesystems
There are more file systems than
O/S
Most O/S support multiple file
systems
File systems have their own
strengths, weaknesses
What does this mean and
idiosyncrasies
All have the same 4 basic
operations
C RUD
Create,
read,
O/S
is “god” in the system
ALL programs MUST request access to
resources via the O/S
Programs only run if the O/S allows
them to
=> understanding of O/S is crucial