System Calls and Services
System Calls and Services
Structures
Touch screen
File management
create file, delete file
open, close file
read, write, reposition
get and set file attributes
Move and copy
Device management
The various resources controlled by the operating system can be thought of as
devices.
Some of these devices are physical devices (for example, disk drives), while
others can be thought of as abstract or virtual devices (for example, files).
request device, release device
read, write, reposition
get device attributes, set device attributes
logically attach or detach devices
Information maintenance
get time or date, set time or date
get system data, set system data
get and set process, file, or device attributes
calls may return information about the system, such as the
version number of the operating system, the amount of free
memory or disk space, and so on.
Debugging a program. Many systems provide system calls to
dump() memory.
time profile of a program to indicate the amount of time that
the program executes at a particular location or set of
locations.
Status information
Some ask the system for info - date, time, amount of available
memory, disk space, number of users
Others provide detailed performance, logging, and debugging
information
Typically, these programs format and print the output to the
terminal or other output devices
Some systems implement a registry - used to store and
retrieve configuration information
Application programs
Don’t pertain to system
Run by users
Not typically considered part of OS
Launched by command line, mouse click, finger poke
Operating System Concepts – 10th Silberschatz, Galvin and Gagne
Operating System Design and Implementation
The heart of the system, known as the virtual machine monitor, runs
on the bare hardware and does the multiprogramming, providing not one,
but several virtual machines to the next layer up.
They are exact copies of the bare hardware, including kernel/user
mode, I/O, interrupts, and everything else the real machine has.
Because each virtual machine is identical to the true hardware, each one can
run any operating system that will run directly on the bare hardware.