Operating System Structures
Operating System Structures
Structures
Operating System Services
provide functions :
User interface
Program execution
I/O operations
File-system manipulation
Communications
Error detection
A View of OS Services
User Interface
(UI).
• Command-Line Interface(CLI)
• Touchscreen Interfaces
variations.
User OS Interface - CLI
systems program
User OS Interface - GUI
Voice commands.
System Calls
provided by the OS
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
processes
Types of System Calls
File management
Device management
Information maintenance
Communications
Protection
Single-tasking
Shell invoked when system
booted
Simple method to run
program
No process created
Single memory space
Loads program into
memory
Program exit -> shell At system startup running a program
reloaded
System Programs
principle to separate
Much variation
Now C, C++
Main body in C
Layered – an abstrcation
Microkernel -Mach
iOS
Application Framework
surface media
Dalvik
manager framework
virtual machine
webkit libc
Linux kernel
Operating-System Debugging
Improve performance by
removing bottlenecks
displaying measures of
system behavior
For example, “top”
program or Windows
Task Manager