Information Technology Topic

Processing Modes

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. A processing mode is the way a computer takes in and handles work: batch collects jobs and runs them together without the user, while on-line works from terminals under the computer's direct control
  2. Real-time processing handles data about an event at once so the result can influence what happens next, and time-sharing gives many users a slice of computer time each
  3. Small calculations are possible: batch run time is records divided by speed, and in time-sharing each user waits for everyone else's slice before the next turn

Section 1What is a processing mode?

A processing mode is the way a computer system takes in data and handles its work. The syllabus names four: batch, real-time, on-line and time-sharing. The differences come down to two questions. When is the data processed, straight away or later? And does the user take part while the processing happens? The terms real-time, on-line, time-sharing, multiprogramming and multiprocessing all became widely accepted in the third generation of computers (1964 to 1970).

Section 2Batch processing

In batch processing, jobs are collected and then run together as a group, without the user taking part while they run. Think of a pile of work done in one go. A typical batch job is a payroll run or an overnight update of stock records. The data is gathered during the day, and the computer works through it later, often overnight. The user does not need to sit at the computer. The result is available when the run finishes, not instantly. Here's the trick: if the question says collected, grouped, overnight or without user interaction, think batch.

Section 3On-line processing

On-line processing is processing from terminals that are under the direct control of the computer. The user works at a terminal and the computer responds straight away. A remote terminal is a display (or teletypewriter) connected to the computer by a communications line, so the user can be far from the computer itself. Compare with batch: in batch, the user hands over the work and waits. In on-line processing, the user interacts directly with the system.

Section 4Real-time processing

In real-time processing, data about an event is entered directly into the computer as the event happens and is processed at once, so that the result can influence what happens next. In a control setting, the calculation is done while the physical process is happening, so that the results can steer that process. The results must arrive in time to act on. Examples of this kind of use are a heart monitor that reacts to readings and a controller that adjusts a pump as conditions change. Easy to mix up: real-time does not simply mean fast. It means the answer comes in time to affect the event. A payroll run overnight is not real-time, however fast the computer is.

Section 5Time-sharing

Time-sharing is a processing mode in which many users share the computer's resources through on-line terminals, each user getting a slice of computer time. It is how dozens or hundreds of users could use a mainframe at once, whether they were in the same building or miles away. Each person feels as if the computer is theirs, because the slices come round quickly. In a simple model, if there are n users and each slice is s milliseconds long, one full round is n times s. A user then waits for the other (n minus 1) users' slices before the next turn. This model ignores the time spent switching between users.

Section 6Comparing the four modes

Batch: jobs are grouped and run later with no user interaction. On-line: the user works at a terminal directly connected to the computer and gets responses straight away. Real-time: data is processed at once so the result can influence what happens next. Time-sharing: many users share the computer, each getting a slice of time. The modes can overlap. A time-sharing system uses on-line terminals, and a system can be both on-line and real-time. Batch is the odd one out, because it does not involve the user waiting at a terminal.

Examples

A supermarket in Mandeville runs a batch job overnight to update its stock records. There are 360 records, and the computer processes 15 records every minute. The job starts at 1:00 am. (a) How many minutes does the run take? (b) At what time does it finish? (c) Explain why this is batch processing and not real-time processing.

(a) 360 records divided by 15 records per minute = 24 minutes. (b) 1:00 am plus 24 minutes = 1:24 am. (c) The records were collected during the day and are processed together later, with nobody at the computer. The result is not needed while the shop is trading, so it does not have to influence an event as it happens. Real-time processing would handle each event at once.

A school in Portmore has a small time-sharing system. Five students use terminals at once, and the computer gives each student a slice of 40 milliseconds in turn. (a) How long is one full round of turns? (b) How long does one student wait between the end of their slice and the start of their next one? (c) What share of the computer's time does each student get? (d) Three more students log in, so there are eight. Recalculate (a), (b) and (c), and describe the effect.

This is a simplified model that ignores the time spent switching between users. (a) 5 students x 40 ms = 200 ms. (b) The student waits for the other 4 slices: 4 x 40 = 160 ms. (c) One slice out of five equal slices: 1 divided by 5 = 20 percent. (d) With 8 students: one round = 8 x 40 = 320 ms, the wait = 7 x 40 = 280 ms, and each student gets 1 divided by 8 = 12.5 percent. The effect: more users means a longer wait for each turn and a smaller share for everyone, so the system feels slower.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from