අන්තර්ගතයට යන්න
mcqdinethlive
SPARK · UNIT 4

Why flip-flops matter for the OS lesson

Half adders, full adders and flip-flops are not one more list to memorize. They are the bridge from binary numbers to the memory that the operating system manages.

සිංහලෙන් කියවන්න

Half adders, full adders and flip-flops in Unit 4 and memory management in Unit 5 are the same subject. Many students memorize the Unit 4 circuits as one more list, and then Unit 5 feels like a new subject.

Look at the chain. A computer uses two states, 0 and 1. Binary addition gives a sum and a carry. The sum follows the XOR rule and the carry follows the AND rule. Put those two gates together, and the result is a half adder. The Sinhala Guide calls it "අර්ධ ආකලකය" (ගුරු අත්පොත 4.4, පිටුව 129). Join full adders in a row, and they add whole numbers.

But an adder forgets. Send the output of a gate back into its input, and the circuit can keep one bit. That is a flip-flop. The Teachers' Guide says that flip-flops "can also be considered as the most basic idea of a Random-Access Memory" (Teachers' Guide 4.4, page 120) (ගුරු අත්පොත 4.4, පිටුව 131). The Sinhala Guide calls it "පිළි-පොළ". A row of flip-flops is a register. Registers, cache and RAM lose their bits without power, so they are volatile (Teachers' Guide 2.4, page 70) (ගුරු අත්පොත 2.4, පිටුව 77). The Sinhala Guide calls volatile memory "නශ්‍ය මතකය".

Now open the OS lesson. A context switch saves the processor registers into the PCB (Teachers' Guide 5.3, page 137) (ගුරු අත්පොත 5.3, පිටුව 148). The PCB keeps the CPU registers of each process (Teachers' Guide 5.3, page 136) (ගුරු අත්පොත 5.3, පිටුව 147). The Sinhala Guide calls the PCB "ක්‍රියායන පාලන ඛණ්ඩය" and the context switch "සන්දර්භ ස්විචය". The MMU adds the value of a base register to every address (Teachers' Guide 5.4, page 141) (ගුරු අත්පොත 5.4, පිටුව 152). The Sinhala Guide calls the MMU "මතක කළමනාකරණ ඒකකය". That is a register and an adder. Paging splits a binary address into a page number and an offset.

The syllabus says it too. The adders and flip-flops level is about circuits "used in CPU" and "in physical memory" (Syllabus 4.4, pages 13 and 14) (විෂය නිර්දේශය 4.4, පිටුව 13). The Sinhala syllabus calls physical memory "භෞතික මතකය". The 2023 (held 2024) paper asks about flip-flop registers and paging in the same question (2023 (held 2024) Paper II, B, Q10).

The full chain, step by step, is in an Explained post. Read it, then try that 2023 Q10 before looking at any answers.

මේ Spark එක බෙදාගන්න

A/L ICT කරන යාළුවෙකුට යවන්න.

තවත් Sparks

  1. English

    Layer 2 and Layer 3 switches 101

    A Layer 2 switch forwards frames by MAC address inside one LAN, and a Layer 3 switch also routes packets by IP address between networks. Why both exist, where they work today, and the past paper questions that test them.

  2. English

    Planning an A/L ICT second attempt

    A low 2026 A/L ICT result is a map of gaps, not an end. Six units carry 73.4% of the marks, and every paper for the plan is free on this site.

  3. English

    Sequential search in Python 101

    A sequential search returns inside the loop on a match and gives the not found value only after the loop. 2026 Paper II Q9(c) shows where that line goes.

All Sparks