Professional Documents
Culture Documents
2.2
Objectives
To describe the services an operating system provides to users,
2.3
User interface - Almost all operating systems have a user interface (UI)
I/O operations - A running program may require I/O, which may involve
a file or an I/O device.
2.4
May occur in the CPU and memory hardware, in I/O devices, in user
program
2.5
Another set of OS functions exists for ensuring the efficient operation of the
system itself via resource sharing
Accounting - To keep track of which users use how much and what kinds of
computer resources
2.6
2.7
2.8
System Calls
Programming interface to the services provided by the OS
Typically written in a high-level language (C or C++)
Mostly accessed by programs via a high-level Application
Three most common APIs are Win32 API for Windows, POSIX API
(Note that the system-call names used throughout this text are
generic)
2.9
2.10
LPVOID buffera buffer where the data will be read into and written from
2.11
and returns status of the system call and any return values
The caller need know nothing about how the system call is
implemented
2.12
2.13
2.14
system call
2.15
2.16
2.17
MS-DOS execution
2.18
2.19
System Programs
System programs provide a convenient environment for program
File manipulation
Status information
File modification
Communications
Application programs
2.20
2.21
System Programs
Some of them are simply user interfaces to system calls; others are
considerably more complex
File management - Create, delete, copy, rename, print, dump, list, and
generally manipulate files and directories
Status information
Some ask the system for info - date, time, amount of available memory,
disk space, number of users
Typically, these programs format and print the output to the terminal or
other output devices
2.22
2.23
2.24
will be done
2.25
Simple Structure
MS-DOS written to provide the most functionality in the least
space
2.26
2.27
Layered Approach
The operating system is divided into a number of layers (levels),
each built on top of lower layers. The bottom layer (layer 0), is the
hardware; the highest (layer N) is the user interface.
With modularity, layers are selected such that each uses functions
2.28
2.29
UNIX
UNIX limited by hardware functionality, the original UNIX operating
Systems programs
The kernel
2.30
2.31
passing
Benefits:
More secure
Detriments:
2.32
Mac OS X Structure
2.33
Modules
Most modern operating systems implement kernel modules
2.34
2.35
Virtual Machines
A virtual machine takes the layered approach to its logical
2.36
virtual machines
Spooling and a file system can provide virtual card readers and
virtual line printers
2.37
Non-virtual Machine
Virtual Machine
2.38
resources since each virtual machine is isolated from all other virtual
machines. This isolation, however, permits no direct sharing of
resources.
2.39
VMware Architecture
2.40
2.41
2.42
System Boot
Operating system must be made available to hardware so hardware
can start it
2.43
End of Chapter 2