Welcome to Processing Systems
Ever wondered how a bank processes millions of card transactions every night, how an airline prevents two people from booking the exact same seat at the same second, or how your computer runs Spotify and a web browser at the same time? The answer lies in processing systems.
In this chapter of AS 2: Fundamentals of Digital Technology, we will look at the different ways computer systems handle, manage, and process data. Don't worry if these terms seem similar at first glance — we will break down each method step-by-step with real-world examples and easy memory tricks.
1. Batch Processing
Batch processing is a method where data and transactions are collected together over a period of time into a single group (a batch) and processed all at once, usually at an off-peak time, with no human interaction required once the process starts.
How Batch Processing Works (Step-by-Step)
• Step 1: Data Collection — Data is collected over time and stored in a temporary file called the Transaction File.
• Step 2: Sorting — Both the Master File (the permanent, main database of records) and the Transaction File are sorted using the same key field (e.g., Employee ID).
• Step 3: Processing — The computer takes each record from the transaction file, finds the matching record in the master file, and updates it.
• Step 4: Output Generation — A brand new, updated Master File is created, along with reports and an Error File / Exception Log (containing records that couldn't be processed, such as an invalid ID).
Key Terminology in Batch Processing
• Master File: The principal, permanent file containing complete baseline data (e.g., student records or customer accounts).
• Transaction File: A temporary file containing changes, additions, or transactions that need to be applied to the master file (e.g., hours worked this week).
• Grandfather-Father-Son (GFS) Backup: A classic three-generation backup strategy often used in batch systems where three generations of files are retained to ensure data recovery.
Real-World Examples of Batch Processing
• Monthly Payroll: Calculating salaries and printing payslips at the end of the month based on timesheets collected during the month.
• Utility Billing: Generating quarterly electricity or gas bills after meter readings are gathered.
• Bank Cheque Processing: Clearing physical cheques at the end of the business day.
Advantages and Disadvantages of Batch Processing
Advantages:
• Off-peak execution: Jobs can be scheduled to run overnight when computer resources are free and electricity costs may be lower.
• No human intervention: Once started, the system runs automatically without requiring staff supervision.
• High efficiency: Processing thousands of similar records together makes optimal use of computing power.
Disadvantages:
• Delay in results: Output is not immediate; users must wait until the batch has run (latency).
• Data is not always up-to-date: Between batch runs, the master file reflects older data.
• Error handling delay: If an error occurs in the batch, it is logged and only resolved after the entire run finishes.
Key Takeaway: Batch processing = Collect now, sort, and process all together later without user intervention.
2. Real-Time Processing
Real-time processing involves processing data immediately as it is received, with results outputted quickly enough to affect the ongoing activity or maintain an up-to-the-minute database.
In the CCEA specification, real-time processing is divided into two major types:
A. Real-Time Transaction Processing (Online Processing)
In transaction processing, each transaction is dealt with immediately so that records are updated on the spot. This guarantees that multiple users always see the latest data.
• Example 1: Airline Seat / Concert Ticket Booking: When you select seat 14B, the system locks it immediately so no one else can book it simultaneously.
• Example 2: ATM Cash Withdrawals: Your bank balance must update instantaneously so you cannot withdraw the same £50 from two cash machines at the same moment.
B. Real-Time Process Control
In process control, the computer receives continuous input from sensors, processes the data instantly, and sends signals to actuators to adjust physical equipment. A delay in processing could result in equipment failure or severe safety hazards.
• Example 1: Anti-lock Braking System (ABS) in cars: Detects skidding wheels in milliseconds and pulses the brakes automatically.
• Example 2: Chemical Plant / Nuclear Reactor Monitoring: Sensors monitor temperature and pressure, automatically opening cooling valves if safety limits are exceeded.
• Example 3: Intensive Care Patient Monitoring: Monitors heart rate and oxygen levels, immediately sounding an alarm if vital signs drop.
Advantages and Disadvantages of Real-Time Processing
Advantages:
• Instant updates: Prevents critical errors such as double-booking or overdrawing funds.
• Immediate response: Vital for safety-critical systems where delays could cause physical harm or financial loss.
• Always current: Data stored in the system is always completely up to date.
Disadvantages:
• Expensive hardware and infrastructure: Requires high-speed dedicated links, continuous server uptime, and redundant backup systems.
• Vulnerable to crashes: If the real-time system goes down, business operations stop completely (e.g., ticket booking becomes impossible).
Key Takeaway: Real-time = Immediate input, immediate processing, and instantaneous update or physical control.
3. Interactive Processing
Interactive processing involves direct, two-way communication between the user and the computer system. The user inputs data or commands, the computer processes the request, and it displays feedback or prompts for the next instruction.
• Analogy: Having a conversation with someone — you speak (input), they listen and reply (processing & output), and you decide what to say next.
• Examples: Online shopping websites, playing a video game, booking a doctor's appointment online, or using a search engine.
Key Difference to Remember:
Interactive systems allow humans to guide the dialogue step-by-step. In contrast, batch processing has no human interaction once started, and real-time process control interacts with sensors/actuators rather than human dialogue.
4. Multi-Tasking, Multi-Programming, and Multi-Processing
These three terms sound very similar and are a frequent source of lost marks in exams. Let's make sure you never confuse them!
A. Multi-Tasking
• Definition: The operating system allows a single CPU to run multiple user applications concurrently by rapidly switching between them (known as time-slicing).
• How it feels: Because the processor switches between tasks in microseconds, it appears to the user that all programs are running simultaneously.
• Example: You are typing an essay in Microsoft Word while listening to music on Spotify and downloading a file in the background.
B. Multi-Programming
• Definition: An operating system technique where multiple programs are loaded into main memory (RAM) at the same time. When the currently executing program pauses to wait for an Input/Output (I/O) operation (like loading from a disk or waiting for user keypress), the CPU immediately switches to execute another program in RAM.
• Purpose: Maximises CPU utilisation so the processor is never sitting idle while waiting for slow peripheral devices.
C. Multi-Processing
• Definition: A computer system containing two or more physical processors (CPUs or cores) that can execute separate instructions at the exact same physical instant.
• Difference from Multi-Tasking: Multi-tasking switches one CPU between tasks quickly; multi-processing genuinely runs tasks at the same time on separate processing units.
• Example: A quad-core computer rendering a 3D video on Core 1 & 2, while running an AI training model on Core 3 & 4.
Memory Trick to Separate the Three 'Multis':
• Multi-Tasking: One user doing multiple jobs on one CPU.
• Multi-Programming: Multiple jobs sitting in RAM waiting for CPU time.
• Multi-Processing: Multiple physical CPUs/cores executing code simultaneously.
5. Summary & Quick Comparison Table
Batch vs Real-Time at a Glance
Batch Processing:
• Data processed in groups at scheduled times.
• Master file updated periodically.
• No human interaction required during run.
• Suitable for non-urgent, high-volume tasks (e.g., payroll, utility bills).
Real-Time Processing:
• Data processed immediately as it arrives.
• Master file updated instantaneously.
• High interaction with users (transactions) or sensors (process control).
• Suitable for urgent, time-critical tasks (e.g., booking tickets, ABS brakes).
Common Exam Pitfalls to Avoid
• Pitfall 1: Writing that real-time means "fast". In computer science, real-time means processing occurs within a strict time constraint to affect the process, not just that the computer is fast.
• Pitfall 2: Confusing Transaction File with Master File. Remember: The Master File is the main, permanent record; the Transaction File is the temporary file of changes applied during a batch run.
• Pitfall 3: Confusing Multi-tasking with Multi-processing. Multi-processing must have multiple CPUs or cores.
Final Review Tip: When answering exam questions on processing systems, always state the processing type, give a clear justification based on time urgency, and identify whether the system requires immediate feedback or can wait.