Process Management: States, PCB, Schedulers and Waiting Time – Grade 12 A/L ICT Notes 5.3

© 2026 schoolict.net (Ruwan Mangala Suraweera)

5.3 Process Management: States, PCB, Schedulers and Waiting Timeක්‍රියාවලි කළමනාකරණය: තත්ත්ව, PCB, කාර්ය සටහන්කරුවන් සහ රැඳී කාලය

Grade 12 A/L ICT · Lesson 512 ශ්‍රේණිය A/L ICT · පාඩම 5

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • A process is a running program; a PCB stores its OS data.ක්‍රියාවලියක් ධාවනය වන වැඩසටහනකි; PCB එහි OS දත්ත තබයි.
  • States include new, ready, running, waiting, terminated.තත්ත්ව: නව, සූදානම්, ධාවනය, රැඳී, අවසන්.
  • Schedulers: long-term, short-term, medium-term.කාර්ය සටහන්කරුවන්: දීර්ඝ, කෙටි, මධ්‍ය.
  • Waiting = turnaround − burst; throughput = jobs per time.රැඳී = පරිභ්‍රමණ − පිපිරුම්; ප්‍රතිදානතාව = කාලයකට රැකියා.
  • FCFS and SJF examples show how to compute average waiting time.FCFS සහ SJF උදාහරණ සාමාන්‍ය රැඳී කාලය ගණනය කරන ආකාරය පෙන්වයි.
ProcessInterruptPCBContext switchReady stateWaiting stateLong-term scheduler

Notesසටහන්

Syllabus 5.3. A process is a program in execution. The OS creates processes, handles interrupts, tracks states, stores facts in a PCB, switches context, and uses schedulers. In this part you also meet turnaround, response, throughput and waiting time, with worked FCFS / SJF waiting-time calculations.විෂය නිර්දේශය 5.3. ක්‍රියාවලියක් යනු ක්‍රියාත්මක වන වැඩසටහනකි. OS ක්‍රියාවලි සාදයි, බාධක හසුරුවයි, තත්ත්ව ලුහුබඳියි, PCB එකක කරුණු තබයි, සන්දර්භය මාරු කරයි, කාර්ය සටහන්කරුවන් භාවිත කරයි. මෙම කොටසින් පරිභ්‍රමණ, ප්‍රතිචාර, ප්‍රතිදානතා සහ රැඳී කාල, සහ FCFS / SJF රැඳී-කාල ගණනය ද ඉගෙන ගනී.

1. Program vs process1. වැඩසටහන සහ ක්‍රියාවලිය

A program is passive (bytes on disk). A process is active: it has a program counter, registers, stack and an address space. Creating a process allocates a PCB, loads code, and sets the first state to ready (or new→ready).වැඩසටහන නිෂ්ක්‍රීයයි (තැටියේ බයිට්). ක්‍රියාවලිය සක්‍රියයි: PC, රෙජිස්තර, ස්ටැක් සහ ලිපින අවකාශයක් ඇත. ක්‍රියාවලියක් සෑදීමේදී PCB වෙන් කර කේතය පූරණය කරයි.

2. Interrupts2. බාධක

An interrupt is a signal that something needs the CPU’s attention (I/O finished, timer tick, error). The OS runs an interrupt handler, may save the current process’s state, then resumes or schedules another process.බාධකයක් යනු CPUගේ අවධානය අවශ්‍ය බවට සංඥාවකි. OS බාධක හසුරුවන්නෙකු ධාවනය කර, තත්ත්වය සුරකින අතර නැවත ආරම්භ කරයි හෝ වෙනත් ක්‍රියාවලියක් කාර්ය සටහන්ගත කරයි.

3. Process states and transitions3. ක්‍රියාවලි තත්ත්ව සහ සංක්‍රාන්ති

Process states (simplified)NewනවReadyසූදානම්RunningධාවනයWaitingරැඳීTerminatedඅවසන්
Simplified process statesසරල කළ ක්‍රියාවලි තත්ත්ව
  • New → being created.නව → සාදමින්.
  • Ready → waiting for CPU.සූදානම් → CPU එකක් රැඳී.
  • Running → on the CPU.ධාවනය → CPU මත.
  • Waiting / blocked → waiting for I/O or an event.රැඳී / අවහිර → I/O හෝ සිදුවීමක් රැඳී.
  • Terminated → finished or killed.අවසන් → අවසන් වී හෝ නවතා ඇත.
💡 Syllabus diagrams may show up to seven states (including suspend/ready-suspend). The five above are the core idea.විෂය නිර්දේශ රූපවල තත්ත්ව හතක් දක්වා තිබිය හැක. ඉහත පහ මූලික අදහසයි.

4. PCB and context switch4. PCB සහ සන්දර්භ මාරුව

The Process Control Block (PCB) holds the process ID, state, program counter, registers, scheduling info, memory maps and open files. A context switch saves one PCB’s volatile state and loads another’s so the CPU can run a different process.PCB එකේ ID, තත්ත්වය, PC, රෙජිස්තර, කාර්ය සටහන් තොරතුරු, මතක සිතියම් සහ විවෘත ගොනු තබයි. සන්දර්භ මාරුව එක් PCB තත්ත්වය සුරකින අතර අනෙක පූරණය කරයි.

5. Schedulers5. කාර්ය සටහන්කරුවන්

CPU scheduling ideaReady queueP1 P2 P3Schedulerකාර්ය සටහන්කරුCPUrunning P
Scheduler picks the next processකාර්ය සටහන්කරු ඊළඟ ක්‍රියාවලිය තෝරයි
Schedulerකාර්ය සටහන්කරුWhenකවදාදJobකාර්යය
Long-termදීර්ඝ-කාලීනJob admissionරැකියා ඇතුළත් කිරීමControls multi-programming degreeබහු-ක්‍රමලේඛන මට්ටම පාලනය කරයි
Short-term (CPU)කෙටි-කාලීන (CPU)Very oftenඉතා නිතරPicks who runs next on the CPUCPU මත ඊළඟට ධාවනය වන්නා තෝරයි
Medium-termමධ්‍ය-කාලීනWhen memory is tightමතකය තද වූ විටSwaps / suspends processesක්‍රියාවලි swap / අත්හිටුවයි

Multi-programming keeps several processes in memory. Time-sharing gives interactive slices. Metrics: turnaround = finish − arrival; waiting = turnaround − burst; response ≈ first-run − arrival; throughput = jobs finished per unit time.බහු-ක්‍රමලේඛනය ක්‍රියාවලි කිහිපයක් මතකයේ තබයි. කාල බෙදාගැනීම අන්තර්ක්‍රියාකාරී කැබලි දෙයි. මිනුම්: පරිභ්‍රමණ = අවසන් − පැමිණීම; රැඳී = පරිභ්‍රමණ − පිපිරුම්; ප්‍රතිචාර ≈ පළමු ධාවනය − පැමිණීම; ප්‍රතිදානතාව = කාල ඒකකයකට අවසන් රැකියා.

🧮 Worked exampleවිසඳූ උදාහරණය 20 jobs finish in 10 seconds. What is the throughput?රැකියා 20 ක් තත්පර 10 කින් අවසන් වේ. ප්‍රතිදානතාව කුමක්ද?
Throughput = 20/10 = 2 jobs/s.ප්‍රතිදානතාව = 20/10 = තත්පරයට රැකියා 2.

6. Worked example – FCFS waiting times6. විසඳූ උදාහරණය – FCFS රැඳී කාල

FCFS (First-Come-First-Served) runs processes in arrival order with no preemption.FCFS පැමිණීමේ අනුපිළිවෙලින් ක්‍රියාවලි ධාවනය කරයි.

🧮 Worked exampleවිසඳූ උදාහරණය Jobs P1–P4 with arrivals 0,1,2,3 and bursts 5,3,8,6 (ms). Find each waiting time and the average.P1–P4 පැමිණීම් 0,1,2,3 සහ පිපිරුම් 5,3,8,6 (ms). එක් එක් රැඳී කාලය සහ සාමාන්‍යය සොයන්න.
Waits = 0, 4, 6, 13. Average waiting time = 5.75 ms.රැඳී = 0, 4, 6, 13. සාමාන්‍ය රැඳී කාලය = 5.75 ms.
Processක්‍රියාවලියArrivalපැමිණීමBurstපිපිරුම්Startආරම්භයFinishඅවසානයWaitරැඳී
P1P10055005500
P2P21133558844
P3P3228888161666
P4P43366161622221313

7. Worked example – SJF (non-preemptive)7. විසඳූ උදාහරණය – SJF (පූර්ව-නොකළ)

SJF picks the ready job with the shortest burst next.SJF සූදානම් රැකියා අතරින් කෙටිම පිපිරුම් ඇති එක තෝරයි.

🧮 Worked exampleවිසඳූ උදාහරණය Jobs: P1(0,7), P2(2,4), P3(4,1), P4(5,4). Find the average waiting time under non-preemptive SJF.රැකියා: P1(0,7), P2(2,4), P3(4,1), P4(5,4). පූර්ව-නොකළ SJF යටතේ සාමාන්‍ය රැඳී කාලය සොයන්න.
Order runs P1, then P3, then P2, then P4. Waits = 0, 6, 3, 7. Average = 4 ms.අනුපිළිවෙල P1, P3, P2, P4. රැඳී = 0, 6, 3, 7. සාමාන්‍ය = 4 ms.
Processක්‍රියාවලියArrivalපැමිණීමBurstපිපිරුම්Startආරම්භයWaitරැඳී
P1P100770000
P3P344117733
P2P222448866
P4P45544121277
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. In 2026 desktop and phone OS still combine multi-level feedback queues, CFS (Linux) and similar fair schedulers. The exam still expects you to compute FCFS/SJF waiting times by hand – that trains the definitions of waiting and turnaround time.2026 ඩෙස්ක්ටොප් සහ දුරකථන OS තවමත් බහු-මට්ටමේ පෝෂණ පෝලිම්, CFS (Linux) වැනි සාධාරණ කාර්ය සටහන්කරුවන් මිශ්‍ර කරයි. විභාගය තවමත් FCFS/SJF රැඳී කාල අතින් ගණනය කිරීමට බලාපොරොත්තු වේ.

Key Wordsප්‍රධාන පද

Processක්‍රියාවලිය
A program in execution with its own state.තමන්ගේ තත්ත්වය සහිත ක්‍රියාත්මක වන වැඩසටහනකි.
Interruptබාධකය
Signal that needs CPU attention now.දැන් CPU අවධානය අවශ්‍ය සංඥාවකි.
PCBPCB
Process Control Block – OS record for a process.Process Control Block – ක්‍රියාවලියක OS වාර්තාව.
Context switchසන්දර්භ මාරුව
Saving one process state and loading another.එක් ක්‍රියාවලි තත්ත්වය සුරකින අතර අනෙක පූරණය කිරීම.
Ready stateසූදානම් තත්ත්වය
Waiting for the CPU.CPU එකක් රැඳී සිටී.
Waiting stateරැඳී තත්ත්වය
Blocked for I/O or an event.I/O හෝ සිදුවීමක් සඳහා අවහිරයි.
Long-term schedulerදීර්ඝ-කාලීන කාර්ය සටහන්කරු
Admits jobs into the system.රැකියා පද්ධතියට ඇතුළත් කරයි.
Short-term schedulerකෙටි-කාලීන කාර්ය සටහන්කරු
Chooses the next process for the CPU.CPU සඳහා ඊළඟ ක්‍රියාවලිය තෝරයි.
FCFSFCFS
First-Come-First-Served scheduling.පළමුව පැමිණි පළමුව සේවා කාර්ය සටහන්ගත කිරීම.
SJFSJF
Shortest-Job-First scheduling.කෙටිම-රැකියාව-පළමු කාර්ය සටහන්ගත කිරීම.
Waiting timeරැඳී කාලය
Time spent in the ready queue (turnaround − burst).සූදානම් පෝලිමේ ගත කළ කාලය (පරිභ්‍රමණ − පිපිරුම්).
Throughputප්‍රතිදානතාව
Number of jobs finished per unit time.කාල ඒකකයකට අවසන් වන රැකියා ගණන.

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1Distinguish a program and a process.වැඩසටහනක් සහ ක්‍රියාවලියක් වෙන්කර හඳුනාගන්න.

Answerපිළිතුර: A program is passive code on storage; a process is that code running with state (PC, registers, memory).වැඩසටහන ගබඩාවේ නිෂ්ක්‍රීය කේතයකි; ක්‍රියාවලිය තත්ත්වය සහිතව ධාවනය වන එම කේතයයි.

2What does a PCB store?PCB එකක තබා ඇත්තේ කුමක්ද?

Answerපිළිතුර: PID, state, PC, registers, scheduling data, memory info, open files (typical contents).PID, තත්ත්වය, PC, රෙජිස්තර, කාර්ය සටහන් දත්ත, මතක තොරතුරු, විවෘත ගොනු.

3What is a context switch?සන්දර්භ මාරුවක් යනු කුමක්ද?

Answerපිළිතුර: Saving the current process’s CPU state and loading another process’s state.වත්මන් ක්‍රියාවලියේ CPU තත්ත්වය සුරකින අතර අනෙක් ක්‍රියාවලියේ තත්ත්වය පූරණය කිරීම.

4Name the three scheduler types.කාර්ය සටහන්කරු වර්ග තුන නම් කරන්න.

Answerපිළිතුර: Long-term, short-term (CPU) and medium-term.දීර්ඝ-කාලීන, කෙටි-කාලීන (CPU) සහ මධ්‍ය-කාලීන.

5Define waiting time and turnaround time.රැඳී කාලය සහ පරිභ්‍රමණ කාලය අර්ථ දක්වන්න.

Answerපිළිතුර: Turnaround = finish − arrival; waiting = turnaround − burst (time in ready queue).පරිභ්‍රමණ = අවසන් − පැමිණීම; රැඳී = පරිභ්‍රමණ − පිපිරුම්.

6In the FCFS example, what is the average waiting time?FCFS උදාහරණයේ සාමාන්‍ය රැඳී කාලය කුමක්ද?

Answerපිළිතුර: 5.75 ms.5.75 ms.

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 20

1A process isක්‍රියාවලියක් යනු

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Active execution.සක්‍රිය ක්‍රියාත්මක වීම.

2PCB stands forPCB යනු

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

OS process record.OS ක්‍රියාවලි වාර්තාව.

3A process in the ready state isසූදානම් තත්ත්වයේ ක්‍රියාවලියක්

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Ready queue.සූදානම් පෝලිම.

4Context switchingසන්දර්භ මාරු කිරීම

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Switch processes on CPU.CPU මත ක්‍රියාවලි මාරු.

5The short-term schedulerකෙටි-කාලීන කාර්ය සටහන්කරු

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

CPU scheduler.CPU කාර්ය සටහන්කරු.

6FCFS scheduling servesFCFS කාර්ය සටහන්ගත කිරීම සේවා කරන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

First come first served.පළමුව පැමිණි පළමුව.

7SJF picks the ready job withSJF තෝරන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Shortest job first.කෙටිම රැකියාව පළමු.

8Waiting time equalsරැඳී කාලය සමාන වන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Time in ready queue.සූදානම් පෝලිමේ කාලය.

9Throughput isප්‍රතිදානතාව යනු

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Jobs/time.රැකියා/කාලය.

10If 20 jobs finish in 10 s, throughput isරැකියා 20 ක් තත්පර 10 කින් අවසන් නම් ප්‍රතිදානතාව

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

20/10=2.20/10=2.

11In the lesson FCFS example, average waiting time isපාඩමේ FCFS උදාහරණයේ සාමාන්‍ය රැඳී කාලය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

(0+4+6+13)/4.(0+4+6+13)/4.

12In the lesson SJF example, average waiting time isපාඩමේ SJF උදාහරණයේ සාමාන්‍ය රැඳී කාලය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Computed SJF average.ගණනය කළ SJF සාමාන්‍යය.

13Which term means: “A program in execution with its own state”?“තමන්ගේ තත්ත්වය සහිත ක්‍රියාත්මක වන වැඩසටහනකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Process – A program in execution with its own state.ක්‍රියාවලිය – තමන්ගේ තත්ත්වය සහිත ක්‍රියාත්මක වන වැඩසටහනකි.

14Which term means: “Signal that needs CPU attention now”?“දැන් CPU අවධානය අවශ්‍ය සංඥාවකි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Interrupt – Signal that needs CPU attention now.බාධකය – දැන් CPU අවධානය අවශ්‍ය සංඥාවකි.

15Which term means: “Process Control Block – OS record for a process”?“Process Control Block – ක්‍රියාවලියක OS වාර්තාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

PCB – Process Control Block – OS record for a process.PCB – Process Control Block – ක්‍රියාවලියක OS වාර්තාව.

16Which term means: “Saving one process state and loading another”?“එක් ක්‍රියාවලි තත්ත්වය සුරකින අතර අනෙක පූරණය කිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Context switch – Saving one process state and loading another.සන්දර්භ මාරුව – එක් ක්‍රියාවලි තත්ත්වය සුරකින අතර අනෙක පූරණය කිරීම.

17Which term means: “Waiting for the CPU”?“CPU එකක් රැඳී සිටී” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Ready state – Waiting for the CPU.සූදානම් තත්ත්වය – CPU එකක් රැඳී සිටී.

18Which term means: “Blocked for I/O or an event”?“I/O හෝ සිදුවීමක් සඳහා අවහිරයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Waiting state – Blocked for I/O or an event.රැඳී තත්ත්වය – I/O හෝ සිදුවීමක් සඳහා අවහිරයි.

19Which term means: “Admits jobs into the system”?“රැකියා පද්ධතියට ඇතුළත් කරයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Long-term scheduler – Admits jobs into the system.දීර්ඝ-කාලීන කාර්ය සටහන්කරු – රැකියා පද්ධතියට ඇතුළත් කරයි.

20Which term means: “Chooses the next process for the CPU”?“CPU සඳහා ඊළඟ ක්‍රියාවලිය තෝරයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Short-term scheduler – Chooses the next process for the CPU.කෙටි-කාලීන කාර්ය සටහන්කරු – CPU සඳහා ඊළඟ ක්‍රියාවලිය තෝරයි.

MCQ answer keyMCQ පිළිතුරු

  1. B – Active execution.සක්‍රිය ක්‍රියාත්මක වීම.
  2. C – OS process record.OS ක්‍රියාවලි වාර්තාව.
  3. D – Ready queue.සූදානම් පෝලිම.
  4. B – Switch processes on CPU.CPU මත ක්‍රියාවලි මාරු.
  5. E – CPU scheduler.CPU කාර්ය සටහන්කරු.
  6. E – First come first served.පළමුව පැමිණි පළමුව.
  7. A – Shortest job first.කෙටිම රැකියාව පළමු.
  8. C – Time in ready queue.සූදානම් පෝලිමේ කාලය.
  9. A – Jobs/time.රැකියා/කාලය.
  10. B – 20/10=2.20/10=2.
  11. A – (0+4+6+13)/4.(0+4+6+13)/4.
  12. E – Computed SJF average.ගණනය කළ SJF සාමාන්‍යය.
  13. D – Process – A program in execution with its own state.ක්‍රියාවලිය – තමන්ගේ තත්ත්වය සහිත ක්‍රියාත්මක වන වැඩසටහනකි.
  14. D – Interrupt – Signal that needs CPU attention now.බාධකය – දැන් CPU අවධානය අවශ්‍ය සංඥාවකි.
  15. C – PCB – Process Control Block – OS record for a process.PCB – Process Control Block – ක්‍රියාවලියක OS වාර්තාව.
  16. A – Context switch – Saving one process state and loading another.සන්දර්භ මාරුව – එක් ක්‍රියාවලි තත්ත්වය සුරකින අතර අනෙක පූරණය කිරීම.
  17. C – Ready state – Waiting for the CPU.සූදානම් තත්ත්වය – CPU එකක් රැඳී සිටී.
  18. D – Waiting state – Blocked for I/O or an event.රැඳී තත්ත්වය – I/O හෝ සිදුවීමක් සඳහා අවහිරයි.
  19. B – Long-term scheduler – Admits jobs into the system.දීර්ඝ-කාලීන කාර්ය සටහන්කරු – රැකියා පද්ධතියට ඇතුළත් කරයි.
  20. E – Short-term scheduler – Chooses the next process for the CPU.කෙටි-කාලීන කාර්ය සටහන්කරු – CPU සඳහා ඊළඟ ක්‍රියාවලිය තෝරයි.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1Distinguish program and process; list three PCB contents.වැඩසටහන සහ ක්‍රියාවලිය වෙන්කර PCB අන්තර්ගත තුනක් ලැයිස්තුගත කරන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Program passive / process active (1); PCB: PID, state, PC/registers (or similar) (2).වැඩසටහන නිෂ්ක්‍රීය / ක්‍රියාවලිය සක්‍රිය (1); PCB: PID, තත්ත්වය, PC/රෙජිස්තර (2).

2Describe ready, running and waiting states.සූදානම්, ධාවනය සහ රැඳී තත්ත්ව විස්තර කරන්න. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Ready: wants CPU (1); running: on CPU (1); waiting: blocked for I/O/event (1).සූදානම්: CPU අවශ්‍ය (1); ධාවනය: CPU මත (1); රැඳී: I/O/සිදුවීම (1).

3Compare long-term and short-term schedulers.දීර්ඝ-කාලීන සහ කෙටි-කාලීන කාර්ය සටහන්කරුවන් සංසන්දනය කරන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Long-term admits jobs / degree of multi-programming (1); short-term picks next CPU process often (2).දීර්ඝ: රැකියා ඇතුළත් / බහු-ක්‍රමලේඛන මට්ටම (1); කෙටි: CPU ඊළඟ තෝරයි (2).

4For the FCFS data in the notes, show waits and the average.සටහන්වල FCFS දත්ත සඳහා රැඳී කාල සහ සාමාන්‍යය පෙන්වන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Waits 0,4,6,13 (2); average 5.75 (1).රැඳී 0,4,6,13 (2); සාමාන්‍ය 5.75 (1).

5Define waiting, turnaround and throughput; give the 20-jobs-in-10-s throughput.රැඳී, පරිභ්‍රමණ සහ ප්‍රතිදානතාව අර්ථ දක්වා රැකියා 20/තත්පර 10 ප්‍රතිදානතාව දෙන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Definitions (2); throughput 2 jobs/s (1).අර්ථ දැක්වීම් (2); ප්‍රතිදානතාව තත්පරයට 2 (1).

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • A process is a running program; a PCB stores its OS data.ක්‍රියාවලියක් ධාවනය වන වැඩසටහනකි; PCB එහි OS දත්ත තබයි.
  • States include new, ready, running, waiting, terminated.තත්ත්ව: නව, සූදානම්, ධාවනය, රැඳී, අවසන්.
  • Schedulers: long-term, short-term, medium-term.කාර්ය සටහන්කරුවන්: දීර්ඝ, කෙටි, මධ්‍ය.
  • Waiting = turnaround − burst; throughput = jobs per time.රැඳී = පරිභ්‍රමණ − පිපිරුම්; ප්‍රතිදානතාව = කාලයකට රැකියා.
  • FCFS and SJF examples show how to compute average waiting time.FCFS සහ SJF උදාහරණ සාමාන්‍ය රැඳී කාලය ගණනය කරන ආකාරය පෙන්වයි.

Downloadsබාගත කිරීම්

Full Lesson 5 PDFසම්පූර්ණ පාඩම 5 PDF: English · සිංහල

Next noteඊළඟ සටහන 5.4 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.