1 Pertemuan 24 Sistem Operasi Unix Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.

Slides:



Advertisements
Similar presentations
Bab 14 IMPLEMENTASI TEORI SISTEM OPERASI. SISTEM UNIX.
Advertisements

Slide 2-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 2 Using the Operating System 2.
Matakuliah: sistem Operasi 1. Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : menjelaskan konsep sistem file (C2) 2.
Pertemuan 13 Threads Matakuliah: H0483 / Network Programming Tahun: 2005 Versi: 1.0.
1 Pertemuan 19 Disk Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS03.
1 Pertemuan 22 Radix Sort Matakuliah: T0016/Algoritma dan Pemrograman Tahun: 2005 Versi: versi 2.
EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
1 Pertemuan 21 Sistem File Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Processes Professor Jennifer Rexford
1 Processes and Pipes COS 217 Professor Jennifer Rexford.
1 UNIX 1 History of UNIX 2 Overview of UNIX 3 Processes in UNIX 4 Memory management in UNIX 5 The UNIX file system 6 Input/output in UNIX.
1 Pertemuan 18 Input / Output (lanjutan) Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Processes and Pipes. 2 "He was below me. I saw his markings, manoeuvred myself behind him and shot him down. If I had known it was Saint-Exupery, I.
Structure of Processes
1 Case Study 1: UNIX and LINUX Chapter History of unix 10.2 Overview of unix 10.3 Processes in unix 10.4 Memory management in unix 10.5 Input/output.
Ceng Operating Systems 10-1 Chapter 10 : Case Study - UNIX History of unix Overview of unix Processes in unix Memory management in unix Input/output.
1 Pertemuan 8 Penjadwalan (lanjutan) Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Pertemuan 16 Isu-Isu pada Sistem Paging dan Segmentasi Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Introduction to Kernel
1 Pertemuan 7 Masalah-masalah pada Komunikasi antar Proses dan Penjadwalan Batch Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Pertemuan 21 Parallelism and Superscalar Matakuliah: H0344/Organisasi dan Arsitektur Komputer Tahun: 2005 Versi: 1/1.
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
1 Pertemuan 11 Manajemen Memori Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS02.
Animation Pertemuan 5 Matakuliah: T0732 / Sistem Multimedia Tahun: 2007.
Pertemuan 20 Character oriented terminal
Linux Operating System
1 Pertemuan 8 The Object Definition Language (Lanjutan) Matakuliah: M0174/OBJECT ORIENTED DATABASE Tahun: 2005 Versi: 1/0.
Phones OFF Please Processes Parminder Singh Kang Home:
ThreadsThreads operating systems. ThreadsThreads A Thread, or thread of execution, is the sequence of instructions being executed. A process may have.
CASE STUDY 1: Linux and Android Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 6 System Calls OS System.
Chapter 7 UNIX and LINUX. 2 Outline Overview Processes in UNIX Memory management in UNIX I/O in UNIX UNIX file system.
The Structure of Processes (Chap 6 in the book “The Design of the UNIX Operating System”)
1 Pertemuan 3 Konsep Sistem Operasi Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Pertemuan 5 Software: System Software Matakuliah: T0604-Pengantar Teknologi Informasi Tahun: 2008 Versi: 2.0/0.0 Williams, B.K, Stacy C. Sawyer (2007).
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
1 Chapter 10 : Case Study - UNIX History Overview Processes Memory management Input/output in The unix file system Security Note: This case study covers.
© 2004, D. J. Foreman 1 Implementing Processes and Threads.
Silberschatz, Galvin and Gagne  Operating System Concepts Process Concept An operating system executes a variety of programs:  Batch system.
CSE 5343/7343UNIX Case Study1 CSE 5343/7343 Fall 2006 Case Studies UNIX History/Processes.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
UNIX Unit 1- Architecture of Unix - By Pratima.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
1 Pertemuan 22 Implementasi Sistem File Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
UNIX & Windows NT Name: Jing Bai ID: Date:8/28/00.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
1 Structure of Processes Chapter 6 Process State and Transition Data Structure for Process Layout of System Memory THE DESIGN OF THE UNIX OPERATING SYSTEM.
What is a Process ? A program in execution.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
Pertemuan 19 External Memory: I
Operating System Basics
Introduction to Kernel
Table Pertemuan 10 Matakuliah : L0182 / Web & Animation Design
Process Management Process Concept Why only the global variables?
Pertemuan 12 Manajemen Memory (Lanjutan)
Case Study 1: UNIX and LINUX
Matakuliah : T0553/Sistem Multimedia Tahun : 2005 Versi : 5
CASE STUDY 1: Linux and Android
Modeling Page Replacement Algorithms
Structure of Processes
Matakuliah : Web Design
Modeling Page Replacement Algorithms
Operating Systems Lecture 1.
Lecture 6: Multiprogramming and Context Switching
Unix Process Control B.Ramamurthy 4/11/2019 B.Ramamurthy.
In Today’s Class.. General Kernel Responsibilities Kernel Organization
The UNIX Time Sharing System
Presentation transcript:

1 Pertemuan 24 Sistem Operasi Unix Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : mendemonstrasikan sistem operasi Linux, dari manajemen proses, memory, file sampai dengan I/O (C3)

3 Outline Materi Sejarah Unix Overview Unix Shell Program Utiliti Proses pada Unix System Call System memory dan I/O pada Unix

4 LINUX Sejarah Unix –Unics –PDP 11 Unix –Portable Unix –Barkeley Unix –Standar Unix –MINIX –LINUX

5 Overview of Unix UNIX Goals –UNIX is an interactive system designed to handle multiple processes and multiple users at the same time. –It was designed by programmers, for programmers, to use in an environment in which the majority of the users are relatively sophisticated and are engaged in software development projects –Extensive facilities to work together

6 Interfaces to UNIX The layers of a UNIX system.

7 UNIX Kernel Approximate structure of generic UNIX kernel

8 Booting UNIX The sequences of processes used to boot some systems cp

9 SHELL Program Login Prompt Command Argument Redirect Pipe Shell Script Background process

10 Contoh cp src dest head –20 file ls x.c y.c z.c sort out sort temp; head –30 < temp; rm temp sort < in | head –30 grep ter *.t | sort | head –20 | tail –5 > foo wc –l B & sort < x | head &

11 Program Utiliti Manipulasi file dan direktori Filter Tool untuk pengembangan program Text processing Sistem administrator dll

12 UNIX Utility Programs A few of the more common UNIX utility programs required by POSIX

13 Process pada Unix Sistem multiprogramming Daemonds Cron daemonds System fork Process parent PID Pohon process signal Group process UID Superuser (root)

14 System Calls for Process Management s is an error code pid is a process ID residual is the remaining time from the previous alarm

15 POSIX Shell A highly simplified shell

16 Implementasi Process Process Table (always in memory) –Parameter scheduling –Memory map –Signal –Etc User Structure (only in memory when the program is executed) –Machine registers –System call state –File descriptor table –Accounting –Stack kernel

17 Handling Memory Process A's virtual address space Physical memory Process B's virtual address space Process A Process B

18 Sharing Files Two processes can share a mapped file. A new file mapped simultaneously into two processes

19 Implementation of memory management Swapping Tiga hal yang menyebabkan swapping ke disk 1.Fork 2.BRK (request for memory) 3.Stack increase

20 Implementation (2) Paging in UNIX Page daemon Core map  information about the contents of page frame The core map in 4BSD

21 Implementation (3) Page replacement algorithm  Two handed clock –Two pointers –First, it clear the usage bit at the front end, and –Then, check the usage bit at the back hand If two hands are kept close together, then only very heavily used pages have their R-bit stay 1 (after being zero-ed by the front hand )