Presentasi sedang didownload. Silahkan tunggu

Presentasi sedang didownload. Silahkan tunggu

PROSES DAN MANAJEMEN PROSES (1)

Presentasi serupa


Presentasi berjudul: "PROSES DAN MANAJEMEN PROSES (1)"— Transcript presentasi:

1 PROSES DAN MANAJEMEN PROSES (1)
Praktikum 3 SISTEM OPERASI

2 Pokok Bahasan Proses pada sistem operasi Linux
Manajemen Proses pada sistem operasi Linux

3 Tujuan Belajar Setelah mempelajari materi pada bab ini, mahasiswa diharapkan mampu : Memahami konsep proses pada sistem operasi Linux Menampilkan beberapa cara menampilkan hubungan proses parent dan child Menampilkan status proses dengan beberapa format berbeda Melakukan pengontrolan proses pada shell Memahami penjadwalan prioritas

4 Theory Chapter 3 : Process

5 Perintah yang dipakai Kill [1/2/3/9/15] [PID] killall
Ps [a/u/x/f/a/e/H] Pstree [p/h] [pid,ppid,%mem,cmd] Fg bg More Yes Jobs Top [s/u/k/q]

6 Definisi Proses Proses adalah program yang dieksekusi
Proses-proses yang hampir sama dikumpulkan dalam bentuk batch-batch (batch = partai yg lebih kecil) ini disebut sebagai job Job-job ini dieksekusi secara otomatis dengan menggunakan sistem scheduling. Ketika processes dihentikan, proses tersebut dikeluarkan memory. Ketika proses tersebut dijalankan kembali, maka data-data proses tersebut yang disimpan harus di-restore kembali. Data-data ini disimpan dalam program counter (di processor) and the value of all program registers. The program counter (PC), commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR),[1] the instruction counter,[2] or just part of the instruction sequencer,[3] is a processor register that indicates where a computer is in its program sequence.

7 Ps PID : process id , nomor identitas proses yang bersifat unik TTY : nama terminal dimana aktif TIME : cpu time CMD : Direktori eksekusi proses A tty is a regular terminal device (the console on your server, for example). A pts is a psuedo terminal slave (an xterm or an ssh connection).

8 Status Proses New - The process is in the stage of being created.
Ready - The process has all the resources available that it needs to run, but the CPU is not currently working on this process's instructions. Running - The CPU is working on this process's instructions. Waiting - The process cannot run at the moment, because it is waiting for some resource to become available or for some event to occur. For example the process may be waiting for keyboard input, disk access request, inter-process messages, a timer to go off, or a child process to finish. Terminated - The process has completed. Some systems may have other states besides the ones listed here.

9 Diagram Status Proses

10 Parent- Child relationship in process

11 Tipe proses Ketika anda menjalankan proses, ada dua cara yang bisa dilakukan yaitu : Foreground Processes Background Processes Foreground process: proses yang mengambil input dari keyboard dan dioutputkan di monitor Ketika proses dijalankan secara foreground dan membutuhkan banyak waktu, kita tidak dapat menjalankan proses lain, karena promptnya digunakan untuk eksekusi proses tersebut

12 Background process : Proses yang dijalankan dibelakang prompt
Keuntungannya adalah jika anda menjalankan process secara background maka anda dapat menjalankan perintah lain, tanpa harus menunggu proses background tersebut selesai. Dijalankan dengan menambahkan & sehabis command

13 Sinyal Proses dapat menerima dan mengirim sinyal ke proses lainna dengan menggunakan : Kill [-nomor signal] PID Nomor sinyal : 1 : SIGHUP -> hangup 2 : SIGINT -> interrupt 3 : SIGQUIT -> quit 9 : SIGKILL -> kill 15 : SIGTERM -> terminasi

14 Linux Process Status

15 Linux Process Status

16 https://dvdhrm.wordpress.com/2013/08/24/session-management-on-linux/


Download ppt "PROSES DAN MANAJEMEN PROSES (1)"

Presentasi serupa


Iklan oleh Google