Lesson Notes - Processing Modes Data Transfer
Lesson Notes - Processing Modes Data Transfer
Processing Modes
Data must be processed by the must suitable means. It can be transferred to one or more
computer system for more processing, for output or for storage.
Batch processing
On-line processing
Real-time processing
Time-sharing
Batch processing
A batch processing system is one where data is collected together in a batch before
processing starts. With early computers data was entered on punched cards (or Hollerith
cards), which were handled in batches, hence the term batch processing. Batch
processing is most suitable for tasks where a large amount of data has to be processed on
a regular basis. When a batch job begins, it will continue until it is completed, or until an
error occurs.
Examples of a batch processing systems include those that process utility bills such as:
Water
Electricity
Payroll
Examination report card systems
Credit card companies also process billing in batches. The customer does not receive a
bill for each separate credit card purchase but one monthly bill for all of that month’s
purchases. The bill is created through batch processing, where all the data is collected
and held until the bill is processed as a batch at the end of the billing cycle.
Once the data is submitted for processing, the computer may be left running
without human interaction.
The computer is only used for a certain period of time for the batch job.
Jobs can be scheduled for time when the computer is not busy.
There is always a delay before work is processed and returned since batch jobs are
usually stored up over a period of time.
1
It usually involves an expensive computer and a large number of trained staff.
Computers and peripheral devices are on-line when they are connected to a main
processor and turned on, so that the operator can interact with them. Examples of on-line
processing include devices such as printers, which are on line when they are ready to
receive data from the computer to print. Most printers have an on line button you can
press to turn the machine on. If it is turned off then you are off line. You can also be
online if you are connected to say, Internet through a modem or network.
A real-time processing system processes data without significant delay, making it always
up-to-data. Since a processing system must be connected to one or more computers to
process data, then it must also be on-line. However, note that on-line does not
necessarily imply that processing is real time since there may be some delay with an on-
line system. Examples of real-time processing systems include:
Advantages
Disadvantages
Time- Sharing
A time-sharing system allows many users to share time on a single computer. Each user
is given a slice of CPU time by the computer. The computer works so fast that each user
seems to be the sole user of the computer.
One example of a time- sharing system is a bank’s bankcard system, which allows
hundreds of people to access the same program on the mainframe at the same time.
2
Other operating system controls include:
Multi-tasking: allowing more than one program to run (work) at the same time:
for example, using a desktop publishing program while a graphics program is still
running
Multi-processing: executing programs using tow or more processors
simultaneously.
Multi-programming: executing two or more programs at the same time using
only one processor
Multi-user: allowing more than one user on a computer network to access the
same file at the same time.
Security: creating passwords to allow only those with correct password to use the
computer.
Data transfer
Data transfer is the movement of data from one place to another. With computers this
happens in three ways
Within a computer
The loading of the operating system when the computer is started is one example of data
being transferred within a computer. The operating system data is transferred from the
hard disk to the computer’s memory (RAM).
Between computers
Most computer users will, at some time or another, need to transfer files between
computers. School students may need to transfer their work from a computer at home to
the school network via a diskette or a Zip disk. Updates to software packages, such as
Microsoft Office, can be downloaded from the Internet using file transfer protocol (FTP).
3
Access as a database, whereas another might use Lotus Approach. The solution to this is
to convert the file into a common file format that can be read by all software packages
without changing or damaging the data. This process is known as file conversion. In the
example in Fig 1, converting the file to CSV (comma separated values) would enable it to
be read by other spreadsheet or databases.
Text, too, can easily be concerted. Saving text in ASCII (American Standard Code for
Information Interchange) format converts letters into binary code that can be read by any
computer. There is a drawback, however, because saving a file as ASCII results in all
formatting (bold, italic. etc.) being lost. To overcome this problem, files can be
converted instead to Rich Text Format (RTF). RTF enables the files to be opened by
other programs- even those on computers running different operating systems, as well as
preserving all formatting.
Fig. 1 Saving an Excel spreadsheet in CSV format means that other spreadsheet or database programs can open the
file.
Another way of transferring data, made popular by the Internet, is by HTML (Hyper Text
Markup Language).
Before transferring data, it is also sometimes necessary to reduce the file size. The
process of reducing the size of a file for storage, or for sending via the Internet, is known
as file compression. WinZip and Stuffit are popular programs for compressing files.
File compression is important because some files, particularly picture, sound, video and
animation files, can take up a large amount of disk storage space.
4
Table 1 File compression
The larger the file size, the longer it takes to send via that Internet. This can mean that
more money is spent on telephone calls. Users of the Internet will also know that web
pages containing pictures can take a long time to load. Web designers try to get around
this problem by reducing the file size of pictures – usually by saving them in JPEG (Joint
Photographic Experts Group) format. When video is to be shown, this will be
compressed using the MPEG (Moving Pictures Experts Group) format. Music will be
compressed using MP3 (Table 1).
Fig. 2 Picture A was creted in Photoshop and saved, uncompressed, in Photoshop format. Its file size is 7.8 Mb. The
picture was then saved as JPEG (picture B), reducing the file size to 469 k.
5
Class Activity: