Kategorie: Wszystkie - process - criteria - scheduling - state

przez aaaple soda 4 lat temu

470

os(Operating System )Fundamental

os(Operating System )Fundamental

OS(Operating System )Fundamental

Main topic

Process Management

หน่วยการคำนวน (จะใช้อะไรเปรียบเทียบขึ้นกับ algorithm)
quantum time
turn around time(processรวมเวลา รอ+ทำงาน)
wating time(processรอcpu)
cpu burst time(เวลาcpuทำงาน)
arrivaltime (processเข้ามาในramรอcpu)
Subtopic
cpu criteria
response time
waiting time
turnaround time
throughput
cpu utilization
Scheduling
algorithm (ใช้ได้กับ job/cpu scheduling)

multi level queue

round robin (fifo)

*arrival time 0 (เริ่มก่อนเสมอ)

sjf (ใช้cpu burst น้อย->มาก)

fcfs (ใช้arrivaltime น้อย->มาก)

cpu scheduling(ram -> cpu)

มี 2 แบบ (เมื่อไรจะเปรียบเทียบprocess)

non-preemptive(1,4 ) เปรียบเทียบprocessเมื่อ runing->blocked running->terminated

preemptive(1,2,3,4) เมื่อมีprocessgเข้ามาใหมฺ่ หรือออกจากสถานะrunning ๖้องมีการเปรียบเทียบprocess

algorithm (ลำดับความสัญคัญprocess)

priority

sjf(non-preemptive, preemptive)

fsfs(non-preemptive)

job scheduling(storage -> ram)
Process
ส่วนประกอบของ process

etc

data section

stack section

local variable

heap section

global variable


text section

มี 2 ประเภท

cpu bound

i/o bound

sjf

preemptive

fcfs

non-preemptive

Context Switching (กาาสับเปลี่ยนระหว่างprocess)
Process State
terminated
blocked/waiting
running
ready
new