grythman / os_lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

os_lab

Lab 2:

Process 1

 0-ees n-1 hurtel toog random()-eer avaad usuhuur eremblene.  

 PCB nertei struct zarlana 

 Main function dotor munkhiin cycle uusgene.  

 Ene cycle ne CTRL+C tovch darah hurtel zogsohgui ajillah yostoi. 

Process1.c filed hadgalna 

Process 2

A[m,n] B[k,l] 2 hemjeest matritsiin utgiig randomoor olgood hoorond ne hasah uldel hiine. 

C[e,g] matritsad niilberiig hadgalaad ur dung hevleh uildliig munkhiin cycle-aar zohion baiguulna. CTRL+C eer taslagdana. 

PCB nertei struct zarlana. 



Ene cycle ne ESC tovch darah hurtel zogsohgui ajillah yostoi. 



Process2.c filed hadgalna. 

Process 3

Duriin temdegt mur dotroos ijil temtegtuudiig toolooh program bichih. 

Hevleh uildliig munkhiin cycle dotor oruulna. 

Ene cycle ne CTRL+C-eer taslagdana. 

PCB nertei struct zarlana 

 Process3.c filed hadgalna. 

Process Control Block-/PCB/ ne daraah baidlaar zarlagdana.
context switch

Seminar No.3:

Theme: “Context Switching”

      Process 1	Process 2  	Process 3

Timer 10 c 5 c 3c

Priority I II III

Process ne Ready -> Running tuluvt ajillana

About


Languages

Language:C 100.0%