SlideShare a Scribd company logo
1 of 36
Download to read offline
Lecture 2

           O/S Concepts & Structure
                 2.1. Operating system concepts
                 2.2. System calls
                 2.3. Operating system structure




Sistem Operasi          http://fasilkom.narotama.ac.id/
                                                          1
Introduction




                 • A computer system consists of
                   – hardware
                   – system programs
Sistem Operasi     – application programs
                        http://fasilkom.narotama.ac.id/
                                                          2
What is an Operating System

• It is an extended machine
     – Hides the messy details which must be performed
     – Presents user with a virtual machine, easier to use


• It is a resource manager
     – Each program gets time with the resource
     – Each program gets space on the resource

Sistem Operasi       http://fasilkom.narotama.ac.id/
                                                             3
History of Operating Systems (1)




Early batch system
      – bring cards to 1401
      – read cards to tape
      – put tape on 7094 which does computing
      – put tape on 1401 which prints output
Sistem Operasi        http://fasilkom.narotama.ac.id/
                                                        4
History of Operating Systems (2)

• First generation 1945 - 1955
     – vacuum tubes, plug boards
• Second generation 1955 - 1965
     – transistors, batch systems
• Third generation 1965 – 1980
     – ICs and multiprogramming
• Fourth generation 1980 – present
     – personal computers
Sistem Operasi       http://fasilkom.narotama.ac.id/
                                                       5
History of Operating Systems (3)




• Structure of a typical FMS job – 2nd generation
   Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                      6
History of Operating Systems (4)




     • Multiprogramming system
Sistem Operasi
               – three jobs in memory – 3rd generation
                          http://fasilkom.narotama.ac.id/
                                                            7
The Operating System Zoo
•   Mainframe operating systems
•   Server operating systems
•   Multiprocessor operating systems
•   Personal computer operating systems
•   Real-time operating systems
•   Embedded operating systems
•   Smart card operating systems

Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                   8
Computer Hardware Review (1)
                   Monitor




                                                   Bus




• Components of a simple personal computer
Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                         9
Computer Hardware Review (2)




                 (a) A three-stage pipeline
                 (b) A superscalar CPU
Sistem Operasi       http://fasilkom.narotama.ac.id/
                                                       10
Computer Hardware Review (3)




                 • Typical memory hierarchy
Sistem Operasi
                   – numbers shown are rough approximations
                         http://fasilkom.narotama.ac.id/
                                                              11
Computer Hardware Review (4)




                 Structure of a disk drive
Sistem Operasi        http://fasilkom.narotama.ac.id/
                                                        12
Computer Hardware Review (5)




    One base-limit pair and two base-limit pairs
Sistem Operasi    http://fasilkom.narotama.ac.id/
                                                    13
Computer Hardware Review (6)




             (a)                                 (b)


(a) Steps in starting an I/O device and getting interrupt
(b) Sistem Operasi CPU is interrupted
    How the                http://fasilkom.narotama.ac.id/
                                                             14
Computer Hardware Review (7)




             Structure of a large Pentium system
Sistem Operasi         http://fasilkom.narotama.ac.id/
                                                         15
Operating System Concepts (1)




• A process tree
     – A created two child processes, B and C
     – B created three child processes, D, E, and F
Sistem Operasi      http://fasilkom.narotama.ac.id/
                                                      16
Operating System Concepts (2)




(a) A potential deadlock. (b) an actual deadlock.
Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                    17
Operating System Concepts (3)




       File system for a university department
Sistem Operasi      http://fasilkom.narotama.ac.id/
                                                      18
Operating System Concepts (4)




• Before mounting,
     – files on floppy are inaccessible
• After mounting floppy on b,
     – files on floppy are part of file hierarchy
Sistem Operasi          http://fasilkom.narotama.ac.id/
                                                          19
Operating System Concepts (5)




           Two processes connected by a pipe

Sistem Operasi       http://fasilkom.narotama.ac.id/
                                                       20
Steps in Making a System Call




 There are 11 steps in making the system call
Sistem Operasi
                 readhttp://fasilkom.narotama.ac.id/
                       (fd, buffer, nbytes)            21
Some System Calls For Process Management




 Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                    22
Some System Calls For File Management




Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                   23
Some System Calls For Directory Management




  Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                     24
Some System Calls For Miscellaneous Tasks




 Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                    25
System Calls (1)
• A stripped down shell:

while (TRUE) {                                              /* repeat forever */
  type_prompt( );                                           /* display prompt */
  read_command (command, parameters)                        /* input from terminal */

if (fork() != 0) {                                          /* fork off child process */
    /* Parent code */
    waitpid( -1, &status, 0);                               /* wait for child to exit */
} else {
    /* Child code */
    execve (command, parameters, 0);                        /* execute command */
 }
}
 Sistem Operasi           http://fasilkom.narotama.ac.id/
                                                                                           26
System Calls (2)




• Processes have three segments: text, data, stack
  Sistem Operasi  http://fasilkom.narotama.ac.id/
                                                     27
System Calls (3)




(a) Two directories before linking
  /usr/jim/memo to ast's directory

(b) The same directories after linking
Sistem Operasi      http://fasilkom.narotama.ac.id/
                                                      28
System Calls (4)




                 (a) File system before the mount
                 (b) File system after the mount

Sistem Operasi           http://fasilkom.narotama.ac.id/
                                                           29
System Calls (5)




Sistem Operasi   Some Win32 API calls
                    http://fasilkom.narotama.ac.id/
                                                      30
Operating System Structure (1)




Simple structuring model for a monolithic system
 Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                    31
Operating System Structure (2)




        Structure of the THE operating system
Sistem Operasi       http://fasilkom.narotama.ac.id/
                                                       32
Operating System Structure (3)




                 Structure of VM/370 with CMS

Sistem Operasi           http://fasilkom.narotama.ac.id/
                                                           33
Operating System Structure (4)




                 The client-server model
Sistem Operasi          http://fasilkom.narotama.ac.id/
                                                          34
Operating System Structure (5)




The client-server model in a distributed system

Sistem Operasi   http://fasilkom.narotama.ac.id/
                                                   35
Metric Units




                 The metric prefixes

Sistem Operasi      http://fasilkom.narotama.ac.id/
                                                      36

More Related Content

What's hot (19)

CHAPTER READING TASK OPERATING SYSTEM
CHAPTER READING TASK OPERATING SYSTEMCHAPTER READING TASK OPERATING SYSTEM
CHAPTER READING TASK OPERATING SYSTEM
 
Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01
 
Mca ii os u-1 introduction to os
Mca  ii  os u-1 introduction to osMca  ii  os u-1 introduction to os
Mca ii os u-1 introduction to os
 
Operating System
Operating SystemOperating System
Operating System
 
M.c.a. (sem ii) operating systems
M.c.a. (sem   ii) operating systemsM.c.a. (sem   ii) operating systems
M.c.a. (sem ii) operating systems
 
MELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structure
 
Ch2 operating-system structures
Ch2   operating-system structuresCh2   operating-system structures
Ch2 operating-system structures
 
JavaPerformanceChapter_2
JavaPerformanceChapter_2JavaPerformanceChapter_2
JavaPerformanceChapter_2
 
Smpe
SmpeSmpe
Smpe
 
Chapter 2: Operating System Structures
Chapter 2: Operating System StructuresChapter 2: Operating System Structures
Chapter 2: Operating System Structures
 
Cs8493 unit 5
Cs8493 unit 5Cs8493 unit 5
Cs8493 unit 5
 
Board support package_on_linux
Board support package_on_linuxBoard support package_on_linux
Board support package_on_linux
 
Ch07
Ch07Ch07
Ch07
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Lecture5
Lecture5Lecture5
Lecture5
 
Ch10
Ch10Ch10
Ch10
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
Ccna 2
Ccna 2Ccna 2
Ccna 2
 
Ccna day2
Ccna day2Ccna day2
Ccna day2
 

Viewers also liked

Permasalahan Pendidikan
Permasalahan PendidikanPermasalahan Pendidikan
Permasalahan Pendidikanedisuryadi
 
11 оригинальных способов использования Wrike
11 оригинальных способов использования Wrike11 оригинальных способов использования Wrike
11 оригинальных способов использования WrikeWrike
 
The Federal Regulation Of Insurance
The Federal Regulation Of InsuranceThe Federal Regulation Of Insurance
The Federal Regulation Of InsuranceTony Roehl
 
Catalogo atualizado fazenda cruzeiro
Catalogo atualizado fazenda cruzeiroCatalogo atualizado fazenda cruzeiro
Catalogo atualizado fazenda cruzeiroAgriPoint
 
Work, home or work from home?
Work, home or work from home?Work, home or work from home?
Work, home or work from home?Wrike
 
Reclaim your weekends
Reclaim your weekendsReclaim your weekends
Reclaim your weekendsWrike
 
I Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta Island
I Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta IslandI Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta Island
I Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta IslandSonia Medeiros
 
Building eLearning Communities
Building eLearning CommunitiesBuilding eLearning Communities
Building eLearning CommunitiesDonnaOti
 
Products
ProductsProducts
Productsshuyi12
 
The Future is Fun - Pencil Animation
The Future is Fun - Pencil AnimationThe Future is Fun - Pencil Animation
The Future is Fun - Pencil Animationmkc8b
 
200908.Ej Lc Wv.Presentation Briefing Head Office
200908.Ej Lc Wv.Presentation Briefing Head Office200908.Ej Lc Wv.Presentation Briefing Head Office
200908.Ej Lc Wv.Presentation Briefing Head OfficeWout Visser
 
10 Steps to a Successful Project Kickoff
10 Steps to a Successful Project Kickoff10 Steps to a Successful Project Kickoff
10 Steps to a Successful Project KickoffWrike
 
Werkgroep Business Models Stichting
Werkgroep Business Models StichtingWerkgroep Business Models Stichting
Werkgroep Business Models Stichtinguw84me2
 
Lets Remember the Heroes
Lets Remember the HeroesLets Remember the Heroes
Lets Remember the Heroessiddharthsetia
 
Leaders and followers ann grand - open university - easst 2014
Leaders and followers   ann grand - open university - easst 2014Leaders and followers   ann grand - open university - easst 2014
Leaders and followers ann grand - open university - easst 2014agrand
 
UN Environmental Program SBCI Call To Action
UN Environmental Program SBCI Call To ActionUN Environmental Program SBCI Call To Action
UN Environmental Program SBCI Call To Actionscottbrooker
 

Viewers also liked (20)

Permasalahan Pendidikan
Permasalahan PendidikanPermasalahan Pendidikan
Permasalahan Pendidikan
 
11 оригинальных способов использования Wrike
11 оригинальных способов использования Wrike11 оригинальных способов использования Wrike
11 оригинальных способов использования Wrike
 
Redes Sociales
Redes SocialesRedes Sociales
Redes Sociales
 
The Federal Regulation Of Insurance
The Federal Regulation Of InsuranceThe Federal Regulation Of Insurance
The Federal Regulation Of Insurance
 
1st and 2nd conditional
1st and 2nd conditional1st and 2nd conditional
1st and 2nd conditional
 
Catalogo atualizado fazenda cruzeiro
Catalogo atualizado fazenda cruzeiroCatalogo atualizado fazenda cruzeiro
Catalogo atualizado fazenda cruzeiro
 
Work, home or work from home?
Work, home or work from home?Work, home or work from home?
Work, home or work from home?
 
Reclaim your weekends
Reclaim your weekendsReclaim your weekends
Reclaim your weekends
 
I Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta Island
I Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta IslandI Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta Island
I Wish Your Love sung by Natalie Cole PPS by Sonia Medeiros - Paqueta Island
 
Building eLearning Communities
Building eLearning CommunitiesBuilding eLearning Communities
Building eLearning Communities
 
Products
ProductsProducts
Products
 
The Future is Fun - Pencil Animation
The Future is Fun - Pencil AnimationThe Future is Fun - Pencil Animation
The Future is Fun - Pencil Animation
 
200908.Ej Lc Wv.Presentation Briefing Head Office
200908.Ej Lc Wv.Presentation Briefing Head Office200908.Ej Lc Wv.Presentation Briefing Head Office
200908.Ej Lc Wv.Presentation Briefing Head Office
 
10 Steps to a Successful Project Kickoff
10 Steps to a Successful Project Kickoff10 Steps to a Successful Project Kickoff
10 Steps to a Successful Project Kickoff
 
Werkgroep Business Models Stichting
Werkgroep Business Models StichtingWerkgroep Business Models Stichting
Werkgroep Business Models Stichting
 
Kurikulum 2013 SMP
Kurikulum 2013 SMPKurikulum 2013 SMP
Kurikulum 2013 SMP
 
Lets Remember the Heroes
Lets Remember the HeroesLets Remember the Heroes
Lets Remember the Heroes
 
Artha Graha Peduli
Artha Graha PeduliArtha Graha Peduli
Artha Graha Peduli
 
Leaders and followers ann grand - open university - easst 2014
Leaders and followers   ann grand - open university - easst 2014Leaders and followers   ann grand - open university - easst 2014
Leaders and followers ann grand - open university - easst 2014
 
UN Environmental Program SBCI Call To Action
UN Environmental Program SBCI Call To ActionUN Environmental Program SBCI Call To Action
UN Environmental Program SBCI Call To Action
 

Similar to Kcd226 Sistem Operasi Lecture02

Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03Cahyo Darujati
 
Kcd226 Sistem Operasi Lecture04
Kcd226 Sistem Operasi Lecture04Kcd226 Sistem Operasi Lecture04
Kcd226 Sistem Operasi Lecture04Cahyo Darujati
 
Chapter 01
Chapter 01Chapter 01
Chapter 01 Google
 
Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01Cahyo Darujati
 
CS403: Operating System : Lec 5 System calls.pptx
CS403: Operating System : Lec 5 System calls.pptxCS403: Operating System : Lec 5 System calls.pptx
CS403: Operating System : Lec 5 System calls.pptxAsst.prof M.Gokilavani
 
Kcd226 Sistem Operasi Lecture06
Kcd226 Sistem Operasi Lecture06Kcd226 Sistem Operasi Lecture06
Kcd226 Sistem Operasi Lecture06Cahyo Darujati
 
01. Introduction.ppt
01. Introduction.ppt01. Introduction.ppt
01. Introduction.pptwarlord56
 
Operating System Structure Part-I.pdf
Operating System Structure Part-I.pdfOperating System Structure Part-I.pdf
Operating System Structure Part-I.pdfHarika Pudugosula
 
CS403: Operating System : Lec 1 Introduction.pptx
CS403: Operating System : Lec 1 Introduction.pptxCS403: Operating System : Lec 1 Introduction.pptx
CS403: Operating System : Lec 1 Introduction.pptxAsst.prof M.Gokilavani
 
Section02-Structures.ppt
Section02-Structures.pptSection02-Structures.ppt
Section02-Structures.pptJamelPandiin2
 
EMBA - From Firmware to Exploit - BHEU22
EMBA - From Firmware to Exploit - BHEU22EMBA - From Firmware to Exploit - BHEU22
EMBA - From Firmware to Exploit - BHEU22MichaelM85042
 
Introduction to software 2
Introduction to software 2 Introduction to software 2
Introduction to software 2 Hardini_HD
 

Similar to Kcd226 Sistem Operasi Lecture02 (20)

Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Ali.ppt
Ali.pptAli.ppt
Ali.ppt
 
Chapter-01.ppt
Chapter-01.pptChapter-01.ppt
Chapter-01.ppt
 
Chapter 01 New
Chapter 01 NewChapter 01 New
Chapter 01 New
 
Kcd226 Sistem Operasi Lecture04
Kcd226 Sistem Operasi Lecture04Kcd226 Sistem Operasi Lecture04
Kcd226 Sistem Operasi Lecture04
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
OS-Part-01.pdf
OS-Part-01.pdfOS-Part-01.pdf
OS-Part-01.pdf
 
Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01Kcd226 Sistem Operasi Lecture01
Kcd226 Sistem Operasi Lecture01
 
CS403: Operating System : Lec 5 System calls.pptx
CS403: Operating System : Lec 5 System calls.pptxCS403: Operating System : Lec 5 System calls.pptx
CS403: Operating System : Lec 5 System calls.pptx
 
Kcd226 Sistem Operasi Lecture06
Kcd226 Sistem Operasi Lecture06Kcd226 Sistem Operasi Lecture06
Kcd226 Sistem Operasi Lecture06
 
Ch04 system administration
Ch04 system administration Ch04 system administration
Ch04 system administration
 
01. Introduction.ppt
01. Introduction.ppt01. Introduction.ppt
01. Introduction.ppt
 
Operating System Structure Part-I.pdf
Operating System Structure Part-I.pdfOperating System Structure Part-I.pdf
Operating System Structure Part-I.pdf
 
BIOS AND OS
BIOS AND OSBIOS AND OS
BIOS AND OS
 
CS403: Operating System : Lec 1 Introduction.pptx
CS403: Operating System : Lec 1 Introduction.pptxCS403: Operating System : Lec 1 Introduction.pptx
CS403: Operating System : Lec 1 Introduction.pptx
 
Section02-Structures.ppt
Section02-Structures.pptSection02-Structures.ppt
Section02-Structures.ppt
 
EMBA - From Firmware to Exploit - BHEU22
EMBA - From Firmware to Exploit - BHEU22EMBA - From Firmware to Exploit - BHEU22
EMBA - From Firmware to Exploit - BHEU22
 
Introduction to software 2
Introduction to software 2 Introduction to software 2
Introduction to software 2
 

More from Cahyo Darujati

Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2
Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2
Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2Cahyo Darujati
 
Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...
Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...
Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...Cahyo Darujati
 
Melawan penyebaran hoax di media sosial dengan teknologi
Melawan penyebaran hoax di media sosial dengan teknologiMelawan penyebaran hoax di media sosial dengan teknologi
Melawan penyebaran hoax di media sosial dengan teknologiCahyo Darujati
 
Security is a process not a magic
Security is a process not a magicSecurity is a process not a magic
Security is a process not a magicCahyo Darujati
 
01.welcome.ppt.sosialisasi.skkni.surabaya
01.welcome.ppt.sosialisasi.skkni.surabaya01.welcome.ppt.sosialisasi.skkni.surabaya
01.welcome.ppt.sosialisasi.skkni.surabayaCahyo Darujati
 
Mengatur referensi penelitian
Mengatur referensi penelitianMengatur referensi penelitian
Mengatur referensi penelitianCahyo Darujati
 
Tatakelola Teknologi Informasi
Tatakelola Teknologi InformasiTatakelola Teknologi Informasi
Tatakelola Teknologi InformasiCahyo Darujati
 
Kbk436 Sistem Operasi Lanjut Lecture02
Kbk436 Sistem Operasi Lanjut Lecture02Kbk436 Sistem Operasi Lanjut Lecture02
Kbk436 Sistem Operasi Lanjut Lecture02Cahyo Darujati
 
Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01Cahyo Darujati
 
Kcd226 Sistem Operasi Lecture05
Kcd226 Sistem Operasi Lecture05Kcd226 Sistem Operasi Lecture05
Kcd226 Sistem Operasi Lecture05Cahyo Darujati
 
Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01Cahyo Darujati
 

More from Cahyo Darujati (13)

Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2
Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2
Presentasi jaring pengaman sandi untuk mendukung spbe 29042019 rev2
 
Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...
Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...
Melindungi, Mengamankan, Menanggulangi, dan Memulihkan Keamanan Informasi Pen...
 
Melawan penyebaran hoax di media sosial dengan teknologi
Melawan penyebaran hoax di media sosial dengan teknologiMelawan penyebaran hoax di media sosial dengan teknologi
Melawan penyebaran hoax di media sosial dengan teknologi
 
Security is a process not a magic
Security is a process not a magicSecurity is a process not a magic
Security is a process not a magic
 
01.welcome.ppt.sosialisasi.skkni.surabaya
01.welcome.ppt.sosialisasi.skkni.surabaya01.welcome.ppt.sosialisasi.skkni.surabaya
01.welcome.ppt.sosialisasi.skkni.surabaya
 
Mengatur referensi penelitian
Mengatur referensi penelitianMengatur referensi penelitian
Mengatur referensi penelitian
 
Tatakelola Teknologi Informasi
Tatakelola Teknologi InformasiTatakelola Teknologi Informasi
Tatakelola Teknologi Informasi
 
Pen test methodology
Pen test methodologyPen test methodology
Pen test methodology
 
pengenalan ipv6
pengenalan ipv6pengenalan ipv6
pengenalan ipv6
 
Kbk436 Sistem Operasi Lanjut Lecture02
Kbk436 Sistem Operasi Lanjut Lecture02Kbk436 Sistem Operasi Lanjut Lecture02
Kbk436 Sistem Operasi Lanjut Lecture02
 
Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01
 
Kcd226 Sistem Operasi Lecture05
Kcd226 Sistem Operasi Lecture05Kcd226 Sistem Operasi Lecture05
Kcd226 Sistem Operasi Lecture05
 
Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01Kbk436 Sistem Operasi Lanjut Lecture01
Kbk436 Sistem Operasi Lanjut Lecture01
 

Recently uploaded

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 

Recently uploaded (20)

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 

Kcd226 Sistem Operasi Lecture02

  • 1. Lecture 2 O/S Concepts & Structure 2.1. Operating system concepts 2.2. System calls 2.3. Operating system structure Sistem Operasi http://fasilkom.narotama.ac.id/ 1
  • 2. Introduction • A computer system consists of – hardware – system programs Sistem Operasi – application programs http://fasilkom.narotama.ac.id/ 2
  • 3. What is an Operating System • It is an extended machine – Hides the messy details which must be performed – Presents user with a virtual machine, easier to use • It is a resource manager – Each program gets time with the resource – Each program gets space on the resource Sistem Operasi http://fasilkom.narotama.ac.id/ 3
  • 4. History of Operating Systems (1) Early batch system – bring cards to 1401 – read cards to tape – put tape on 7094 which does computing – put tape on 1401 which prints output Sistem Operasi http://fasilkom.narotama.ac.id/ 4
  • 5. History of Operating Systems (2) • First generation 1945 - 1955 – vacuum tubes, plug boards • Second generation 1955 - 1965 – transistors, batch systems • Third generation 1965 – 1980 – ICs and multiprogramming • Fourth generation 1980 – present – personal computers Sistem Operasi http://fasilkom.narotama.ac.id/ 5
  • 6. History of Operating Systems (3) • Structure of a typical FMS job – 2nd generation Sistem Operasi http://fasilkom.narotama.ac.id/ 6
  • 7. History of Operating Systems (4) • Multiprogramming system Sistem Operasi – three jobs in memory – 3rd generation http://fasilkom.narotama.ac.id/ 7
  • 8. The Operating System Zoo • Mainframe operating systems • Server operating systems • Multiprocessor operating systems • Personal computer operating systems • Real-time operating systems • Embedded operating systems • Smart card operating systems Sistem Operasi http://fasilkom.narotama.ac.id/ 8
  • 9. Computer Hardware Review (1) Monitor Bus • Components of a simple personal computer Sistem Operasi http://fasilkom.narotama.ac.id/ 9
  • 10. Computer Hardware Review (2) (a) A three-stage pipeline (b) A superscalar CPU Sistem Operasi http://fasilkom.narotama.ac.id/ 10
  • 11. Computer Hardware Review (3) • Typical memory hierarchy Sistem Operasi – numbers shown are rough approximations http://fasilkom.narotama.ac.id/ 11
  • 12. Computer Hardware Review (4) Structure of a disk drive Sistem Operasi http://fasilkom.narotama.ac.id/ 12
  • 13. Computer Hardware Review (5) One base-limit pair and two base-limit pairs Sistem Operasi http://fasilkom.narotama.ac.id/ 13
  • 14. Computer Hardware Review (6) (a) (b) (a) Steps in starting an I/O device and getting interrupt (b) Sistem Operasi CPU is interrupted How the http://fasilkom.narotama.ac.id/ 14
  • 15. Computer Hardware Review (7) Structure of a large Pentium system Sistem Operasi http://fasilkom.narotama.ac.id/ 15
  • 16. Operating System Concepts (1) • A process tree – A created two child processes, B and C – B created three child processes, D, E, and F Sistem Operasi http://fasilkom.narotama.ac.id/ 16
  • 17. Operating System Concepts (2) (a) A potential deadlock. (b) an actual deadlock. Sistem Operasi http://fasilkom.narotama.ac.id/ 17
  • 18. Operating System Concepts (3) File system for a university department Sistem Operasi http://fasilkom.narotama.ac.id/ 18
  • 19. Operating System Concepts (4) • Before mounting, – files on floppy are inaccessible • After mounting floppy on b, – files on floppy are part of file hierarchy Sistem Operasi http://fasilkom.narotama.ac.id/ 19
  • 20. Operating System Concepts (5) Two processes connected by a pipe Sistem Operasi http://fasilkom.narotama.ac.id/ 20
  • 21. Steps in Making a System Call There are 11 steps in making the system call Sistem Operasi readhttp://fasilkom.narotama.ac.id/ (fd, buffer, nbytes) 21
  • 22. Some System Calls For Process Management Sistem Operasi http://fasilkom.narotama.ac.id/ 22
  • 23. Some System Calls For File Management Sistem Operasi http://fasilkom.narotama.ac.id/ 23
  • 24. Some System Calls For Directory Management Sistem Operasi http://fasilkom.narotama.ac.id/ 24
  • 25. Some System Calls For Miscellaneous Tasks Sistem Operasi http://fasilkom.narotama.ac.id/ 25
  • 26. System Calls (1) • A stripped down shell: while (TRUE) { /* repeat forever */ type_prompt( ); /* display prompt */ read_command (command, parameters) /* input from terminal */ if (fork() != 0) { /* fork off child process */ /* Parent code */ waitpid( -1, &status, 0); /* wait for child to exit */ } else { /* Child code */ execve (command, parameters, 0); /* execute command */ } } Sistem Operasi http://fasilkom.narotama.ac.id/ 26
  • 27. System Calls (2) • Processes have three segments: text, data, stack Sistem Operasi http://fasilkom.narotama.ac.id/ 27
  • 28. System Calls (3) (a) Two directories before linking /usr/jim/memo to ast's directory (b) The same directories after linking Sistem Operasi http://fasilkom.narotama.ac.id/ 28
  • 29. System Calls (4) (a) File system before the mount (b) File system after the mount Sistem Operasi http://fasilkom.narotama.ac.id/ 29
  • 30. System Calls (5) Sistem Operasi Some Win32 API calls http://fasilkom.narotama.ac.id/ 30
  • 31. Operating System Structure (1) Simple structuring model for a monolithic system Sistem Operasi http://fasilkom.narotama.ac.id/ 31
  • 32. Operating System Structure (2) Structure of the THE operating system Sistem Operasi http://fasilkom.narotama.ac.id/ 32
  • 33. Operating System Structure (3) Structure of VM/370 with CMS Sistem Operasi http://fasilkom.narotama.ac.id/ 33
  • 34. Operating System Structure (4) The client-server model Sistem Operasi http://fasilkom.narotama.ac.id/ 34
  • 35. Operating System Structure (5) The client-server model in a distributed system Sistem Operasi http://fasilkom.narotama.ac.id/ 35
  • 36. Metric Units The metric prefixes Sistem Operasi http://fasilkom.narotama.ac.id/ 36