Welcome to Processing Systems!
Ever wondered what happens behind the scenes when you pay for groceries at a self-checkout, withdraw cash from an ATM, or how utility companies manage to produce thousands of electricity bills at the end of the month? All of these rely on processing systems.
In this chapter of AS 2: Fundamentals of Digital Technology, we will explore the different ways computers collect, process, and output data. Don't worry if computer architecture feels intimidating at first—we will break down every single process step by step!
1. Batch Processing Systems
Imagine doing your laundry. You don't wash a single sock the moment you take it off; instead, you collect dirty clothes in a basket over the week and wash them all together in one go. That is exactly how batch processing works!
What is a Batch Processing System?
A batch processing system is a method where data and transactions are collected into groups (called batches) over a period of time and processed together in a single automated run without manual user intervention.
These jobs are usually scheduled during off-peak hours (such as overnight or during periods of low system demand) to make the best use of CPU resources when other users are offline.
The File Processing Mechanics (How it Works Step-by-Step)
Batch processing relies on two fundamental files:
• Transaction File: A temporary file containing all the changes, additions, and deletions gathered during the batch period.
• Master File: The permanent baseline store containing the main records (e.g., student details, employee records, customer bank balances).
Step 1: Sorting
Before processing begins, both the transaction file and the master file must be sorted into the same sequential order using a primary key field (e.g., Employee ID or Account Number).
Step 2: Processing and Merging
The batch processing program reads the sorted transaction records and applies the changes directly to the master file sequentially.
Step 3: Generating Outputs
The run generates three key outputs:
1. Updated Master File: The new, refreshed baseline file with all updates applied.
2. Error Report: A list of any transaction records that could not be processed (e.g., an invalid account number).
3. Output Reports / Statements: Printed or digital documents such as payslips, bills, or audit reports.
Common Applications of Batch Processing
• Payroll Processing: Calculating monthly or weekly employee wages, tax deductions, and automated bank credits.
• Utility Billing: Calculating electricity, gas, or water meter usage charges and generating customer bills periodically.
• Cheque Clearing: Processing end-of-day bank transactions across financial institutions.
Advantages and Disadvantages
Advantages:
• Jobs run during off-peak times, freeing up processing bandwidth during business hours.
• Requires no user interaction once the run is started.
• Extremely efficient for processing massive volumes of repetitive data.
Disadvantages:
• Significant processing delay between when data is collected and when outputs are generated.
• The master file is not continuously updated, meaning records are out of date between batch runs.
• An error in file sequencing can cause the entire batch job to abort or cause cascading errors.
Quick Takeaway: Batch processing collects data over time, requires both the Master and Transaction files to be sorted in identical key order, and runs automatically without user intervention.
2. Real-Time Processing Systems
While batch processing waits, real-time processing acts immediately.
What is a Real-Time Processing System?
In a real-time system, data is processed immediately as it is generated, and the system responds quickly enough to influence the outside environment or current transaction.
CCEA Exam Tip: Do not just write that real-time means "fast" or "instant." The technically precise BCS and CCEA definition is that data is processed quickly enough to influence the ongoing process or environment immediately.
Real-time systems are split into two distinct categories:
A. Real-Time Process Control Systems
These systems use continuous feedback loops with sensors and actuators to monitor and regulate physical, often safety-critical environments.
• How it works: Sensors take continuous environmental readings \(\rightarrow\) The computer compares the input against preset parameters \(\rightarrow\) If parameters are breached, it sends an immediate control signal to an actuator (e.g., opening a valve or applying brakes).
• Applications:
- Chemical plant temperature and pressure regulation.
- Anti-lock Braking Systems (ABS) and engine management in cars.
- Nuclear reactor safety monitoring.
- Aircraft autopilot flight systems.
B. Real-Time Transaction Processing (Online Interactive)
These systems handle discrete business transactions immediately, ensuring central databases are updated on-the-fly.
• How it works: When a user initiates a transaction, the system applies file locking to the specific record so no other user can alter it at that exact instant. Once confirmed, the central master database updates immediately.
• Applications:
- Airline and concert ticket booking systems (prevents double-booking).
- Automated Teller Machines (ATMs) (prevents overdrawing across multiple branches).
- Point of Sale (POS) checkout systems (updates stock inventory immediately).
Advantages and Disadvantages of Real-Time Systems
Advantages:
• Master records and central databases are always 100% up to date.
• Provides immediate feedback and results to the user or physical system.
• Prevents critical errors such as double-booking seats or overspending account funds.
Disadvantages:
• Expensive hardware, reliable network connectivity, and sophisticated software are required.
• Demands dedicated backup/recovery systems (such as data mirroring or RAID) to handle sudden crashes or power loss.
• Susceptible to performance bottlenecks when large numbers of users access the system simultaneously under peak loads.
Quick Takeaway: Real-time systems respond fast enough to affect the ongoing process. Process control uses sensors and actuators to control physical events, while transaction processing locks records to update central databases immediately.
3. Dedicated Digital Devices: Input, Processing, and Output
CCEA requires you to identify the specific input, processing, and output mechanisms for three common devices. Avoid generic terms like "computer" or "printer"—use technical hardware terminology!
1. Automated Teller Machine (ATM)
• Input Mechanisms:
- Magnetic stripe reader / EMV chip reader / Contactless NFC scanner.
- Encrypted Numeric Keypad / PIN pad (EPP).
- Touchscreen interface / Physical function keys.
- Cash deposit sensor / Envelope validator.
• Processing Involved:
- Encrypting the user-entered PIN for secure transmission.
- Real-time communication and authentication with the bank's central server.
- Verifying current account balance and daily withdrawal limits.
- Calculating the correct currency note denominations to dispense.
- Immediately decrementing and updating the bank master ledger balance.
• Output Mechanisms:
- Motorised cash dispensing mechanism.
- Screen display (providing user prompts, balances, and menus).
- Thermal receipt printer.
- Card return motor mechanism and audio beeper/speaker.
2. Point of Sale (POS) Terminal
• Input Mechanisms:
- Barcode scanner / 2D QR code optical reader.
- Touchscreen monitor.
- Chip & PIN / Contactless card terminal.
- Integrated weighing scales (for fresh produce).
- Manual cash register keyboard.
• Processing Involved:
- Real-time lookup of product codes in the central stock database.
- Calculating item subtotals, promotional discounts, and VAT/tax.
- Secure payment gateway processing with merchant acquirer bank.
- Decrementing the stock inventory database in real time.
- Triggering automatic stock re-order thresholds if inventory drops below set levels.
• Output Mechanisms:
- Operator monitor and customer-facing price display.
- Thermal receipt printer.
- Electronic cash drawer release solenoid (pops the till drawer open).
- Card reader status indicator LEDs and confirmation chime.
3. Smartphone
• Input Mechanisms:
- Capacitive multi-touch screen.
- Biometric sensors (optical/ultrasonic fingerprint scanner, Face ID / Infrared camera).
- Motion and environmental sensors (accelerometer, gyroscope, GPS, ambient light sensor, proximity sensor).
- Microphones and physical hardware buttons (volume, power).
• Processing Involved:
- Operating system execution across multi-core CPU and GPU pipelines.
- Biometric authentication data matching against secure local enclaves.
- Sensor telemetry processing (e.g., rotating screen orientation or calculating step counts).
- Digital signal processing (DSP) for real-time wireless transmission packets (5G, Wi-Fi, Bluetooth).
• Output Mechanisms:
- High-resolution OLED / LCD visual display.
- Audio speakers and earpiece transducers.
- Haptic vibration motor.
- Wireless antenna transmission (transmitting cellular, Bluetooth, or NFC data).
4. Common Pitfalls to Avoid in the Exam
1. Forgetting to sort files in Batch Processing: Always state that both the Master File and Transaction File must be sorted in the same primary key order before batch processing can occur.
2. Treating Real-Time as only "Process Control": Remember that booking websites and ATMs are also real-time systems (Real-Time Transaction Processing), not just chemical plants or aircraft systems.
3. Using vague hardware terms: Do not write "the ATM prints money" or "uses a printer." Write: "The ATM dispenses cash via a motorised cash dispensing mechanism and outputs a statement using a thermal receipt printer."
Chapter Summary Review Checklist
Can you answer these questions confidently?
• What are the three outputs generated during a batch processing update run?
• Why is batch processing scheduled during off-peak times?
• What is the difference between real-time process control and real-time transaction processing?
• Why is file locking necessary in online ticket booking systems?
• Can you list at least 3 distinct input, processing, and output steps for an ATM, POS, and Smartphone?