ANTARMUKA
Pengenalan Sistem
Operasi
TOPIK BAHASAN
Apa yang dimaksud Sistem Operasi
Sistem Mainframe
Sistem Desktop
Sistem Multiprocessor
Sistem Terdistribusi
Sistem Tercluster
Sistem Real -Time
Sistem Handheld
KOMPONEN SISTEM
KOMPUTER
1. Hardware menyediakan sumber daya komputasi dasar (CPU,
memory, I/O devices).
2. Sistem Operasi mengendalikan dan mengkoordinasikan
penggunaan hardware pada berbagai program aplikasi untuk
berbagai pengguna.
3. Program aplikasi menentukan cara-cara bagaimana sumber
daya sistem yang digunakan untuk memecahkan masalah
komputasi dari pengguna (compiler, sistem database, video game,
program bisnis).
4. User (orang, mesin, komputer lain)
ABSTRAKSI KOMPONEN
SISTEM
Serial
Processin
g
Simple
Batch
Systems
Time
Sharing
Multiprogramme Systems
d Batch
Systems
SERIAL PROCESSING
Earliest Computers:
No operating system
programmers interacted directly
with the computer hardware
Problems:
Scheduling:
most installations used a
hardcopy sign-up sheet to
reserve computer time
time allocations could run short
or long, resulting in wasted
computer time
Setup time
a considerable amount of time
was spent just on setting up the
program to run
Monitor
user no longer has direct access to processor
job is submitted to computer operator who batches them
together and places them on an input device
program branches back to the monitor when finished
Monitor
Boundary
Device
Drivers
J ob
Sequencing
Control Language
Interpreter
User
Program
Area
MULTIPROGRAMMED BATCH
SYSTEMS
Processor is
often idle
even with
automatic job
sequencing
I/O devices are
slow compared
to processor
UNIPROGRAMMING
Program A
Run
Wait
Run
Wait
Time
(a) Uniprogramming
Program A
Program B
Wait
Run
Wait
MULTIPROGRAMMIN
G
Program A
Run
Wait
Run
Wait
Time
(a) Uniprogramming
Program A
Run
Wait
Run
Wait
Program B
Wait Run
Wait
Run
Wait
Combined
Run Run
A
B
Wait
Run Run
A
B
Wait
Time
(b) Multiprogramming with two programs
Wait Run
Wait
Run
Wait
Program B
Wait Run
Wait
Run
Wait
Combined
Run Run
A
B
Wait
Run Run
A
B
Wait
MULTIPROGRAMMIN
G
Time
Program A
Run
Program B
Wait Run
Program C
Wait
Combined
Wait
Run
Wait
Run
Wait
Run
Wait
Wait
Wait
Run
Wait
Wait
Time
(c) Multiprogramming with threeprograms
TIME-SHARING SYSTEMINTERACTIVE
COMPUTING
Can be used to handle multiple interactive
jobs
Processor time is shared among multiple
users
Multiple users simultaneously access the
system through terminals, with the OS
interleaving the execution of each user
program in a short burst or quantum of
computation
BATCH MULTIPROGRAMMING
VS. TIME SHARING
Batch Multiprogramming
TimeSharing
Principal objective
Source of directives to
operating system
Table 2.3
CTSS
One of the first time-sharing operating systems
0
5000
Monitor
0
5000
Monitor
0
5000
10000
J OB 1
J OB 2
32000
0
5000
(a)
Monitor
J OB 1
20000
25000
32000
(J OB 2)
Free
(d)
25000
32000
0
5000
J OB 3
(J OB 2)
20000
Free
Monitor
25000
Free
(b)
Monitor
32000
0
5000
Free
(c)
Monitor
J OB 4
15000
20000
25000
32000
J OB 2
(J OB 1)
(J OB 2)
Free
(e)
25000
32000
Free
(f)
SISTEM DESKTOP
Personal computers sistem komputer yang didedikasikan untuk single
user.
Perangkat I/O keyboards, mouse, layar, printer dalam bentuk lebih kecil.
Lebih nyaman dan responsif untuk user
Dapat mengadopsi teknologi yang dikembangkan untuk sistem operasi
yang lebih besar. Individu sering memerlukan komputer yang tidak perlu
utilitas CPU yang canggih dengan fitur proteksi
Dapat menjalankan beberapa tipe sistem operasi yang berbeda
(Windows, MacOS, UNIX, Linux)
MULTITHREADING
Technique in which a process, executing an
application, is divided into threads that can run
concurrently
Thread
Process
a collection of one or more threads and associated
system resources
programmer has greater control over the modularity of
the application and the timing of application related
SISTEM PARALLEL
Merupakan sistem multiprocessor pada CPU yang berkomunikasi
Tightly coupled system processor menggunakan memori dan
clock bersama-sama; komunikasi terjadi melalui shared memory.
Keuntungan sistem parallel:
Meningkatkan throughput
Lebih ekonomis
Meningkatkan kehandalan
Asymmetric multiprocessing
Setiap prosesor diberikan tugas tertentu, master menjadwal prosessor dan
mengalokasikan pekerjaan untuk prosesor slave.
Lebih banyak digunakan pada sistem besar.
ARSITEKTUR SYMMETRIC
MULTIPROCESSING
SYMMETRIC
MULTIPROCESSING (SMP)
Term that refers to a computer hardware architecture
and also to the OS behavior that exploits that
architecture
Several processes can run in parallel
Multiple processors are transparent to the user
these processors share same main memory and I/O
facilities
all processors can perform the same functions
The OS takes care of scheduling of threads or
processes on individual processors and of
synchronization among processors
SMP ADVANTAGES
Performa
nce
Availabili
ty
Incremen
tal
Growth
performance of a system
can be enhanced by adding
an additional processor
Scaling
Time
Process 1
Process 2
Process 3
Process 1
Process 2
Process 3
Blocked
Running
SISTEM TERDISTRIBUSI
Mendistribusikan komputasi pada beberapa prosessor fisik
Loosely coupled system setiap prosessor mempunyai memori lokal;
prosessor berkomunikasi dengan prosessor lainnya melalui beberapa
saluran komunikasi, seperti bus kecepatan tinggi atau saluran telepon.
Keuntungan sistem terdistribusi.
Resources Sharing
Meningkatkan kecepatan komputasi
Handal
Komunikasi dg komputer lain
CLIENT/SERVER MODEL
Windows OS services,
environmental
subsystems, and
applications are all
structured using the
client/server model
Common in distributed
systems, but can be
used internal to a single
system
Processes communicate
via RPC
Advantages:
it simplifies the Executive
it improves reliability
it provides a uniform means
for applications to
communicate with services via
RPCs without restricting
flexibility
it provides a suitable base for
distributed computing
SISTEM TERCLUSTER
Clustering memungkinkan dua atau lebih sistem menggunakan
storage bersama-sama.
Merupakan sistem dengan kehandalan yang tinggi
Asymmetric clustering : satu server menjalankan aplikasi
sementara server lain standby.
Symmetric clustering : semua N host menjalankan aplikasi.
SISTEM REAL-TIME
Sering digunakan sebagai alat kontrol dalam aplikasi khusus seperti
mengontrol percobaan ilmiah, sistem pencitraan medis, sistem kontrol
industri, dan beberapa sistem display.
Batasan waktu terdifinisi dengan baik.
Terdiri dari 2 jenis : hard or soft real-time.
Hard real-time:
Penyimpan sekunder terbatas atau absen, data disimpan sebagai short term memory atau
read-only memory (ROM)
Berkebalikan dengan sistem time-sharing, bukan tujuan umum sistem operasi.
Soft real-time
Terbatas pada industri kontrol robotika.
Berguna untuk aplikasi (multimedia, virtual reality) yang membutuhkan fitur tambahan sistem
operasi.
SISTEM HANDHELD :
ANDROID OPERATING
SYSTEM
A Linux-based system originally
designed for touchscreen
mobile devices such as
smartphones and tablet
computers
The most popular mobile OS
Development was done by
Android Inc., which was bought
by Google in 2005
1st commercial version (Android
1.0) was released in 2008
APPLICATION
FRAMEWORK
Provides high-level building blocks accessible through
standardized APIs that programmers use to create
new apps
architecture is designed to simplify the reuse of components
Key components:
Activity
Manager
Window
Manager
Manages lifecycle
of applications
Java abstraction
of the underlying
Surface Manager
Responsible for
starting,
stopping, and
resuming the
various
applications
Allows
applications to
declare their
client area and
use features like
the status bar
Package
Manager
Telephon
y
Manager
Installs and
removes
applications
Allows
interaction with
phone, SMS, and
MMS services
APPLICATION
FRAMEWORK
(CONT.)
Resource Manager
manages application resources, such as localized strings and bitmaps
View System
provides the user interface (UI) primitives as well as UI Events
Location Manager
allows developers to tap into location-based services, whether by GPS, cell tower IDs,
or local Wi-Fi databases
Notification Manager
manages events, such as arriving messages and appointments
XMPP
provides standardized messaging functions between applications
SYSTEM LIBRARIES
Collection of useful system functions written in C or C++ and
used by various components of the Android system
Called from the application framework and applications
through a Java interface
Exposed to developers through the Android application
framework
Some of the key system libraries include:
Surface Manager
OpenGL
Media Framework
SQL Database
Browser Engine
Bionic LibC
ANDROID RUNTIME
ACTIVITIES
An activity is a single visual user interface component,
including things such as menu selections, icons, and
checkboxes
Every screen in an application is an extension of the
Activity class
Use Views to form graphical user interfaces that
display information and respond to user actions
POWER MANAGEMENT
Alarms
Wakelocks
Full_Wake_Lock
Partial_Wake_Lock
Screen_Dim_Wake_Lock
Screen_Bright_Wake_Lock
QUESTION???