Pertemuan 3
By Danang Aditya
Operating System Services
Komunikasi
Deteksi Error
Alokasi Sumber daya
Accounting
Protection & Security
Proteksi = Memastikan semua akses terhadap system resource tetap terkendali
Security = User authentication, mencegah perangkat I/O eksternal melakukan akses yang
tidak semestinya
Operating System Services View
User Operating System Interface
Secara mendasar cara user berinteraksi dengan sebuah Sistem Operasi terdiri dari :
CLI (Command Line Interfaces)
Memerlukan Command Interpreter, yang bisa saja diimplementasikan dalam kernel, atau
merupakan program terpisah -> Windows & UNIX
Command Interpreter -> Shells
Perintah yang dijalankan bisa saja built in dalam kernel, ataupun berupa pemanggilan
program, dimana memungkinkan penambahan perintah
GUI (Graphical User Interface)
Menggunakan Mouse, Keyboard, dan Monitor
Icons mewakili File, Program, dll
Penekanan tombol mouse yang berbeda pada object interface memungkinkan action
tertentu
Contoh Shell Interpreter
Touchscreen Interface
Setiap kali terjadi pemanggilan System Call, maka akan diberikan nomor
khusus sesuai dengan setiap pemanggilan System Call
System Call Interface akan memanggil System Call OS, setelah dijalankan
akan mengembalikan status ataupun nilai
Pemanggil tidak perlu mengetahui bagaimana system call diimplementasikan
Hanya perlu mematuhi bagaimana API bekerja, dan apa yang akan dikembalikan
oleh OS akibat pemanggilan System Call
Detail dari OS interface tersembunyi dari programmer oleh API
API – System Call – OS Relationship
System Calls Type
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
Cont’d
File management
create file, delete file
open, close file
read, write, reposition
get and set file attributes
Device management
request device, release device
read, write, reposition
get device attributes, set device attributes
logically attach or detach devices
Cont’d
Information maintenance
get time or date, set time or date
get system data, set system data
get and set process, file, or device attributes
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
attach and detach remote devices
Cont’d
Protection
Control access to resources
Get and set permissions
Allow and deny user access
Contoh Standard C Library
Operating System Structure
kernel environment
BSD
Mach