☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

The parts of a computer

الأسبوع 6 · الوحدة ٧ «الكمبيوترات»: مكونات الحاسوب، الوحدات الخمس، البرمجيات، الدوائر المنطقية ونصف الجامع · 3 دروس
2

Software: the instructions that run the machine

ICT Secondary 1 Term 1, Chapter 7: pp. 85–94
GoalSay what an operating system, application software and a driver do, and trace three instructions.
New words
operating system · software that manages files, memory, devices and programsapplication software · a program that does a task for the userdevice driver · a small program that lets the system use one deviceinstruction · one step that the processor can carry out
Explanation

Hardware is the machine; software is the instructions that run it. There are two main kinds. The operating system manages the computer: it keeps the files, shares memory between programs, controls the devices, and starts and stops programs. A desktop computer and a phone each have an operating system of their own kind. Application software does a task for the user, such as writing a text, drawing or playing a game. A device driver is a small program that teaches the operating system how to use one device, such as a printer; a new device may need its driver. A program is stored as a list of instructions. To run it, the processor repeats three steps for each instruction: it fetches the instruction from main memory, decodes it (works out what it asks) and executes it. Then it moves to the next instruction. This cycle repeats billions of times a second in a real processor, but each step is small.

Worked examples
SoftwareKind
a drawing programapplication software
shares memory between programsoperating system
makes a new printer workdevice driver
Sort the software. A program that lets you draw is application software. The part that decides which program may use the memory is the operating system. The small program that makes a new printer work is a device driver.
StepInstructionWork cell afterScreen
1LOAD 55
2ADD 38
3SHOW88
A tiny invented machine has three instructions in memory: 1 LOAD 5 (put 5 in the work cell), 2 ADD 3 (add 3 to the work cell), 3 SHOW (send the work cell to the screen). The processor fetches, decodes and executes them one at a time. The screen shows 8.
Class activity

Write a three-instruction program for the invented machine that shows 10 (use only LOAD, ADD and SHOW), and trace it in a table like the one above.

Practice
1
Which software manages files, memory and devices?
2
What does a device driver do?
3
Which step of the cycle brings the instruction from memory to the processor?
4
In the invented machine, LOAD 2 then ADD 7 then SHOW. What does the screen show?