Data Processing
Data Processing
DATA PROCESSING.
bb
Data processing deals with how data is organized & processed in the computer.
DATA:
Data is a collection of facts & figures, which can be processed to produce information.
Data are the facts relating to an activity in a given environment.
The activity can be Accounting, Inventory control, etc. Environment can be business,
scientific, education, etc.
Examples:
In an educational environment, when students sit for exams, the grades obtained represent the
data to be processed by the computer. In this case, data can be Names of students & Marks
obtained.
In a business environment, data can be the No. of Hours worked, names of employees, Stock
Inventory levels, expense statements, etc.
Data can also be described as Raw data, if they are not yet processed, i.e. if they do not convey
particular meaning to a given activity within any given environment.
It therefore means that, Data are unprocessed information consisting of details relating to
business transactions. For example, in a Payroll system, data are employee’s names, basic
salary, department number, marital status, etc.
DATA PROCESSING:
The collection, manipulation & distribution of data (i.e.) letters, numbers & graphic symbols,
to achieve certain objectives.
The processing may involve calculations, comparisons, decision-making and/or any other
logic to produce the required result.
The activity of manipulating the raw facts to generate a set of meaningful data (described as
Information), which is able to convey some meaning.
Those activities, which are concerned with the systematic recording, arranging, filing,
processing, and dissemination of facts relating to the physical events occurring in a business.
Data processing is a very important activity in any organization of any size or nature because it
generates information for decision-making.
If the data processing uses complicated processing tools or aids, e.g. the computer, it is described
as Electronic Data Processing (EDP).
INFORMATION.
Information is data, which is summarized and processed in the way you want it, so that it is
useful in your work.
Information is an assembly of meaningful data items.
The information in Payroll activity includes; Net pay, Total Tax deductions, etc. In Stock
Control, the information generated includes; Closing stock, Total cost of the items, Purchases,
Sales, etc.
The information is obtained by applying some processing procedures onto the raw data being
input. For example, to get the Net pay in a Payroll activity, the procedure would be;
Net pay = (Basic salary + Allowances + Overtime, if any) – Taxes.
Information is the end product of data processing available at the right place, the right time and
in the right form.
The information generated by the data processing activities is very important in the working
strategies of any organization, because it is used by the organization to make decisions.
1
Data processing techniques
Characteristics/ Features of good Information.
It should: -
(i). Have and serve a purpose.
(ii). Be relevant to its purpose.
(iii). Be complete, accurate, and comprehensive.
(iv). Have been obtained from a reliable source.
(v). Be communicated to the right person and in the right time (i.e. it should be timely).
(vi). Be clear and understandable by the user.
(vii). The user must have confidence in it.
Relationship between Data, Data Processing, and Information.
Data are the facts which relate to any particular activity, and do not have any specific meaning.
Information is data with a definite meaning.
Data processing is the process, which transforms data into information.
In a Manufacturing industry, data may be compared to raw materials and Information to finished
products. Just as raw materials are transformed into finished products, raw data are transformed
into information.
In order to generate information from data items, a set of processing activities have to be
performed on the data items in a specific sequence depending on the desired final result.
Performing these processes is known as Data processing.
Exercise.
1. Define the terms:
(i). Data.
(ii). Information.
(iii). Data processing.
2. Distinguish between the following terms:
(i). Data.
(ii). Data processing.
(iii). Information
3. Using examples, explain the difference between ‘Data’ and ‘Information’.
ORIGINATION OF DATA
Data originates from Source documents,
Time cards, Sales orders, Purchase
orders, Invoices, etc
INPUT OF DATA
Data is recorded in medium suitable
for Input & handling by the data
processing system, e.g. Punched cards,
floppy disks, etc
STORAGE OF DATA
Data is stored in Filing cabinets,
PROCESSING OF DATA
Microfilms, floppy disks, magnetic
Data is entered into the data processing
tapes, etc.
system, Processed, Sorted, Calculated,
Compared, Analyzed, etc
OUTPUT OF INFORMATION
Output consisting of printed or
typewritten forms, etc
Summaries, Reports, & documents are
prepared.
Notes.
Exercise I.
1. (a). What is a Data Processing cycle.
(b). State and describe the stages involved in data processing cycle.
2. Draw and label a clear flow diagram of the stages involved in a data processing cycle.
3. List the various steps in the data processing cycle and briefly describe what happens at each
stage.
DATA COLLECTION.
Data Collection is the process involved in getting the data from the point of its origin to the
computer in a form suitable for processing.
Note. Data collection starts at the source of the raw data & ends when valid data is within the
computer in a form ready for processing.
3
Data processing techniques
2. The process of Data collection involves getting the original data to the “processing center”,
transcribing it, sometimes converting it from one medium to another, and finally getting it
into the computer. This process involves a great number of people, many machines, and
much expense.
Data Capture:
Data Capture is the process of obtaining data in a computer-sensible form at the point of origin.
Obtaining of data in a computer-sensible form helps to avoid many of the problems of data entry.
The captured data may be stored in some intermediate form for later entry into the main
computer in the required form. If data is input directly into the computer at its point of origin,
the data entry is said to be On-Line. In addition, if the method of direct input is a terminal or
workstation, the method of input is known as Direct Data Entry (DDE).
DATA INTEGRITY.
Data integrity refers to the accuracy and completeness of data entered into a computer or
received from an information system. Integrity is measured in terms of:
(i). Accuracy: how close an approximation is to an actual value
(ii). Timeliness: data and information has a time value attached to them
(iii). Relevance: data entered into a computer must be relevant in order to get expected
output.
Threats to data integrity
The following are the main threats to data security;
Unauthorized access
Virus and Worm attacks
Computer errors and accidents
Theft/burglary
Natural calamities and other hazards
5
Data processing techniques
Threats to data integrity can be minimized through the following ways:
1. Backup data preferably on external storage devices
2. Control access to data by enforcing security measures
3. Design of user interfaces that minimize chances of invalid data entry
4. Using error detection and correction software when transmitting data
5. Using devices that directly capture data from the source such as barcode readers,
digital cameras, optical character reader etc
DATA CONTROL.
The quality of Input data is important to the accuracy of output. Control must be instituted as
early as possible in the system & everything possible must be done to ensure that data is
complete and accurate before being input to the computer.
Objectives of Data Control.
The objectives of Control are:
(i). To detect, correct and re-process all errors.
(ii). To ensure that all data is processed.
(iii). To preserve the integrity/reliability of maintained data.
(iv). To prevent and detect fraud/deception.
Note. Control must be designed into the system & thoroughly tested. Failure to build in
adequate control may cause expensive systems to fail. In addition, all users must be fully
consulted to ensure that adequate controls are implemented.
6
Data processing techniques
Comparing the document against stored data to verify entries.
Re-calculating to check calculations made on the document.
VALIDATION CHECKS.
A Computer cannot notice errors in the data being processed in the way that a Clerk or Machine
operator does.
Data validation is the process of preventing wrong data from being processed. It involves
checking whether the results generated by the computer are valid or applicable. During input or
data preparation, the data must be checked for transcription errors, through a process known as
Verification.
Once the data is brought into the computer memory directly from an input device, immediately
before processing, the data is again subjected to checks built in the program described as
validation checks, to check the data integrity or the conformity of the data to the processing
requirements.
Data validation includes testing for the following:
(a). Test for reasonableness.
The computer program checks whether the data is reasonable, e.g., number of people should
not be represented in decimals, i.e. 9½ children.
(b). Test for numbers.
E.g., numbers should not be given as alphabets.
(c). Test for alphabets.
E.g., alphabets should not be represented as numbers.
These checks can be made at 2 stages:
(1).Input stage: When data is first input to the computer, different checks can be applied to
prevent errors going forward for processing. For this reason, the first computer run is often
referred to as Validation or Data vet.
(2).Updating stage: Further checking is possible during data processing (or when the data input
are being processed).
The program checks the consistency of the input data with existing stored data. This check is
possible during the input run if the stored data is on-line at the time.
Note. Validation is an online process (i.e. validation checks are build into the computer
programs using the input data, so that incorrect data items are detected and reported). Since the
checks are under the influence of the computer, they are not prone to errors.
Exercise I.
1. Distinguish between Data verification and Validation as used in the context of data
collection.
7
Data processing techniques
METHODS OF DATA PROCESSING.
8
Data processing techniques
The type of output generated by the E.D.P system is influenced by the type of output device
used, e.g. hardcopy outputs are produced through the Printers, while Softcopies are produced
through the Screen displays.
The control of the Electronic systems is automatic under the influence of the Control unit
(CU) of the computer, whose actions are influenced by stored programs.
Comparison between Manual, Mechanical and Electronic Systems.
Function Manual Systems Mechanical Systems Electronic Systems
s
- Human observation - Human observation - Keyboard
Input - Keyboard - Keyboard - Data entry terminals
- Written records - Written records - Document readers
- Human brain - Conventional - Computer’s C.P.U.
Process - Calculators machines, e.g.
- Written procedures Calculators, Cash
registers, etc
- Human voice - Human voice - Visual Display unit
Output - Written documents - Written reports - Voice Output
- Calculator display. - Printed reports. - Printed output.
- Photographed output.
- Human brain - Manual files or - Computer’s Main memory.
Storage - Manual files folders. - Storage media - disks,
- Written records tapes, etc
- Human brain - Machine influence - Computer’s Control unit
- Written procedures - Written procedures (CU).
Control on manuals. on manuals. - Stored programs.
- Personnel - Personnel
experience. experience.
- Supervision. - Supervision.
9
Data processing techniques
Small organizations with low volumes of data, require few personnel with little or no data
processing aids.
Large or complex business organizations, with high volumes of data, require the use of
sophisticated processing tools, if the information is to be produced on time.
(iv). Convenient.
Data processing that requires repeated operations may be boring & tedious when carried out
manually. In such a case, mechanical or computer machines may be employed to assist in
the processing depending on the nature of the business.
(v). Linked Applications.
In a situation where there is a common data pool that supports several applications, and e.g.,
Manual D.P method is used, then different operations may be required to produce different
informations. However, if Electronic D.P method is used, the informations can be easily
produced from the same data. This is because, the computer is versatile, and can operate in
any desired manner provided the relevant programs are available.
(vi). Better services to customers.
As Data processing systems produce information, the recipient of such information should
receive them immediately to enable them take decisions that control their business
operations.
Using the sophisticated processing aids, such as Computer as in Electronic D.P systems,
improves the quality of information produced, e.g. statistical summaries are produced in
good time, enquiries are answered in good time, and orders are dispatched promptly.
10
Data processing techniques
Some information requirements are less important than others. E.g., the Payroll and Statement of
Accounts may only be produced once a month, whereas in certain companies, the Invoices may
be produced all the time (i.e. as a customer collects the goods).
Link between Applications.
In some applications, the same data items may be used in producing more than one information;
hence, the most suitable data processing system should be used depending on circumstances
surrounding these information requirements.
E.g. a particular item sold may be needed to produce the Invoice & to amend the recorded Stock
position (i.e. to make adjustment of Stock level, and the Bank account or Cash account).
Exercise I.
2. Distinguish between Manual, Mechanical and Electronic systems.
3. Describe the reasons for changing from Manual to Mechanized or Electronic systems.
Exercise II.
1. Write short notes on the following:
(i). Manual systems.
(ii). Mechanized systems.
(iii). Electronic systems.
2. By use of a clear table and brief explanation, show the differences between manual,
mechanized and electronic systems touching on the following functions: input, process,
output, storage and control. (20 marks).
11
Data processing techniques
COMPUTER FILES
A File is a collection of related records (i.e. several records put together) that give a complete set
of information about a certain item or a particular business entity.
Files are important in any business because; they provide up-to-date information relating to the
entity sets of the business, e.g., the suppliers, employees, customers, etc of the organization.
Entities are things whose facts need to be recorded. Each entity has its attributes (i.e.,
individual properties), e.g., Employee (which is an entity) has attributes such as; Name, salary,
address, etc.
A file can be stored manually in a file cabinet or electronically in a computer’s secondary storage
device such as a Floppy disk or hard disk.
Advantages of computerized filing system over manual filing systems.
1. Information takes up less space than the manual filing.
2. It is much easier to update or modify information.
3. It offers faster access and retrieval of data.
4. It enhances data integrity.
5. Reduces duplication of data, or of the stored records
DATA HIERARCHY.
In data processing, data is organized from the smallest element to the most comprehensive.
Bits
Characters
Bit:
A Bit is the smallest item that can be stored in a physical file.
12
Data processing techniques
The bit can either be a ‘0’ or a ‘1’; the two states that define the storage cells of a computer
memory & a storage media.
Bits combine together to form the Byte (which is the unit of measuring the computer storage). A
Byte is the collection of several bits that represent a Character.
Master files.
A Master file is the main file that contains relatively permanent records about particular items or
entries against which transactions are processed.
Master files contain records, which have long-term significance, and are very important for the
running of the organization.
Master files normally contain 2 types of data: Static data and Dynamic data.
(a). Reference (Static) data:
Static data is relatively permanent, and contain details which do not change, e.g., Name,
Sex, Date of birth, Date of hiring, etc.
Static data is processed by amending (i.e. making occasional changes to) the existing
records, e.g., inserting new records, deleting outdated records, etc
(b). Dynamic data:
Dynamic data is temporary and is likely to change frequently, e.g., Salary, Tax rates, hours
worked, Rate of pay, etc.
Dynamic data is processed by updating (i.e. changing the values of the various fields).
The accuracy of data within the operational files is achieved by Updating the Master file (i.e.,
changing the contents in the master files regularly in order to reflect the current state of affairs).
This involves adding, removing or adjusting the data in the Master file.
Reference files.
A Reference file is used for reference or look-up purposes.
Lookup information is that information which is stored in a separate file, but is required during
processing. E.g., the item code entered either manually or using a bar-code reader in a point-of-
14
Data processing techniques
sale terminal is used to look-up the item description & price from a reference file stored on a
storage device.
Reference files contain records that are fairly permanent or semi-permanent such as tax
deductions, Wage rates, Customer address, etc, and therefore, they need to be revised
occasionally.
Backup files.
A Backup file is used to hold duplicate copies (backups) of data or information from the
computer’s fixed storage (hard disk). These files are kept for security purposes.
This is because; the operational files held on the hard disk may be corrupted, lost or changed
accidentally leading to loss or damage of existing information. It therefore important to keep
copies of the recently updated files so that, in case the original file is corrupted or deleted, the
backup file can be used in its place or to reconstruct the original file.
Note. The backup file & the operational file should be kept at separate places so that in case of
loss or damage, both are not affected.
Sort files.
Sort files are created from existing files, such as Master or Transaction files, and are used mainly
for sorting data (i.e., they are used to alter the sequence of the existing files).
A sort file is mainly used where data is to be processed sequentially. In sequential processing,
data or records are first sorted and held on a magnetic tape before updating the master file.
Report files.
A Report file contains a set of relatively permanent records extracted from the data in a Master
file or generated after processing.
Report files are used to prepare reports, which can be printed at a later date.
Example of Report files:
Report on Overtime, report on Taxes, report on student’s class performance in the term, etc.
Scratch file.
A Scratch file is a temporary file used to hold data during processing. It contains temporary data,
which can be erased when the task is finished.
FILE ORGANIZATION
File organization refers to the way records are arranged (laid out) within a particular file.
The term file organization can also refer to the relationship of the Key of a record to the physical
location of that record in the computer file.
File organization is very important because; it determines the method of access, efficiency,
flexibility, and storage devices to be used.
Methods of file organization.
There are 4 methods by which records of a file can be arranged and accessed. These include:
1. Random.
2. Serial.
3. Sequential.
4. Indexed sequential.
Random (Direct) file organization.
In Random or direct file organization, the records are stored in the file randomly, and in no
particular order. This implies that, there is no relationship between two adjacent records.
An Algorithm (mathematical procedure) is applied onto the record key to generate the address of
the location where the record would be stored.
Record Record 3 Record 8 Record 92 Record 1
2 K3 K8 K92 K1
K2
K’s – Record keys.
Random files are usually accessed directly. To access the file, the record key is used to
determine where a record is stored on the storage media. Once the record is located, it is then
read into the computer memory.
This method is used by Magnetic disks and Optical disks.
Advantages of Random file organization.
1. Records are quickly accessed (i.e. there is fast access to records).
2. Files are easily updated (i.e. adding, deleting, and amending the records is easily achieved).
3. The method does not require the use of indexes, hence saving space.
4. Transactions do not need to be sorted before being updated.
5. New records can be easily inserted into a random file.
Disadvantages of Random file organization
1. Data may be accidentally erased or overwritten unless special precautions are taken.
2. Random files are less efficient in the use of storage space compared to sequentially organized
files.
3. Expensive hardware and software resources are required.
4. Relatively complex when programming.
5. System design based on random file organization is complex and costly.
16
Data processing techniques
In Serial file organization, records in a file are stored one after the other in the order they come
into the file without any particular sequence. The records are not sorted in any way on the
storage medium, and there is no relationship that exists between adjacent records.
This type of organization is mostly used on Magnetic tapes.
IRG
1 2 3
File ‘head’ File ‘tail’
Serial files can be accessed serially. This involves searching through the entire file record by
record starting from the ‘head’ of the file towards the ‘tail’ of the file.
Note. Serial access is suitable where all the records in the file are to be read. This is because;
even the records that are not required must be passed over before locating the record of interest.
E.g., to access the 10th record in the file, then the computer reads the first 9 records before
reading the 10th record. Therefore,.
17
Data processing techniques
Record 1 Record 2 Record 3 Record 4 Record 5 Record 6
K1 K2 K3 K4 K5 K6
a, b, c – indexes. K1-K6 – Record keys.
To access a record in an indexed sequential file, the Index and the record’s key field are used by
the computer to search for the required record before it is read into the computer memory.
18
Data processing techniques
disk
3. Sequential Serial (Sequential) Tape, Disk Sorted transaction file, or
Sequential Master file.
4. Index Sequential (a). Sequential Magnetic Master files requiring various
(b). Selective sequential disk processing activities.
(c). Random
20
Data processing techniques
5. Differentiate between Sequential and Indexed Sequential methods of file organization on
disk.
6. (a). What is random file organization? State its advantages.
(b). How are Random files accessed on disk?
7. Identify four file processing methods.
8. Discuss four considerations for choosing a file organization method.
Review questions
1. Define the term “Data processing modes”.
2. Mention five types of electronic data processing modes.
Batch processing
In batch processing, data or transactions are collected & accumulated together over a specified
period of time, e.g., daily, weekly, or monthly. The data is then input & processed at once (or as
a single unit) to produce a batch of output.
For example:
In a payroll processing system, details of employees such as number of hours worked, rate of
pay, may be collected for a period of 1 month, after which they are used to process the payment
for the duration worked.
Data collection is usually done off-line (i.e. away from the CPU) on special machines known as
Data entry terminals. The data is entered & stored on a disk in a batch queue for a while. It is
then input & processed one or more at a time under the control of the Batch operating system,
and the result obtained.
Batches of transactions are scheduled for processing by assigning them priorities. The priorities
are assigned in terms of percentage ratio, e.g. 95%, 60%, etc. The most priority jobs are
processed first, while the less priority jobs are processed once the computer resources (i.e., CPU
time, Memory & I/O devices) are released by the most priority jobs.
Once the processing of a given batch starts, there is no interaction between the operator & the
CPU. Therefore, the user cannot intervene to perform amendments to the program.
A job is not processed until it is fully input. In addition, a program must wait its turn before
processing the data. This means that, there will be a delay in obtaining results. For instance, a
job may wait in the batch queue for minutes or hours depending on the workload. Hence, Batch
processing cannot be used when the results are needed immediately.
21
Data processing techniques
Online processing
In online processing, data or the input transactions are processed immediately they are received
to produce the information required.
Online processing occurs when the transactions are processed to update (or make any change in)
a computer file immediately after the transactions occur.
In online processing, all the Input/Output facilities, and communication equipments are under
direct influence of the central Processor.
In online processing, the operator communicates directly to the computer’s operating system
using commands, which are then interpreted by the supervisor. This means that, the operator can
interact with the system at any point of processing using the Input/Output facilities.
Note. In online processing, the data input units (terminals) are connected directly to the central
computer using communication links.
In such a configuration, the data (input transactions) are communicated from the workstations to
the central computer for processing, & the results communicated back to the workstations
through the telecommunication links.
Characteristics of Online processing system.
22
Data processing techniques
√ The input device is connected directly to the computer.
√ The input data is processed immediately. Processing is completed within a short time (usually
1 or 2 minutes), depending on the speed of the system.
Application areas for online processing systems.
1. Banking:
A bank customer can make an inquiry using an online terminal. The system would then
respond immediately by accessing the relevant file, and inform the customer on the status of
his/her account.
2. Stock exchanges:
Terminals located in major stock exchanges throughout the country enables quick processing
of shares dealings.
3. Stock control:
Terminals located in warehouses enable stock records to be re-ordered automatically, make
reservations, follow-up of outstanding orders, & print picking lists.
4. Manufacturing plants: - to control the progress of work.
5. Inventory status: - i.e., ordering & reporting of geographically dispersed distributors.
Advantages of online processing.
1. Files are held online; therefore the information generated can be used to update the master
files directly.
2. The Information is readily available for immediate decision-making.
3. File enquiries are possible at any given time through the terminals (workstations).
Real-time systems.
A Real-time system is capable of processing data so quickly such that the results (output)
produced are able to influence, control, or affect the outcome of the activity or process currently
taking place.
In a Real-time data processing system, the computer receives & processes the incoming data as
soon as it occurs, updates the transaction file, and gives an immediate response that would affect
the events as they happen.
The input-originating workstations may be connected directly to the central processor by
appropriate communication equipments. In this case, a transaction is processed & completed
immediately or at the same time it occurs. It also ensures quick update to the affected files
(records).
The main purpose of a real-time processing is to provide accurate, up-to-date information, hence;
better services based on a real situation.
Requirements of a real-time processing system.
1). There must be a direct connection between Input/Output devices & the central Processor.
23
Data processing techniques
2). The Response time should be fairly fast, to allow a 2-way communication (interaction)
between the user & central processor.
24
Data processing techniques
4. Real-time systems use 2 or more computer processors sharing up the workloads, which are
expensive.
Review questions
1. (a). Name two industries that extensively use Real-time processing.
(b). Name 3 advantages of a Real-time system.
Time-sharing systems
In time-sharing processing, the central processor allows 2 or more users, who have different
processing requirements, to use one computer at the same time.
The terminal users are usually connected to the central computer using communication links.
The CPU time is divided out equally among the users, and each user is allowed a “Time slice” –
a brief period when he/she is allowed to access the CPU.
The amount of time allocated to each user & the switching from one job to another is controlled
by a multi-user operating system. The OS normally assigns priorities to the various jobs entering
the system.
Illustration;
The OS may give each terminal user 5 seconds to submit a job. The user sits at the terminal &
issues commands to the OS.
After every 5 seconds, the central computer checks all the terminals to see if there is any user
who needs assistance. If a particular terminal does not need service, the computer goes onto the
next terminal. But if a new command has been issued, the computer will allocate a time-slice to
the user. During this time, the computer devotes its full attention to this user. When the time-
slice is over or the user’s requests have been satisfied, the computer goes on to the next terminal.
The user must now wait until he/she is allocated her next time-slice.
Note. The switching of control from one user to another during assigning of the time slices
happens so fast that an individual user may think that he/she is the only one using the system.
E.g., for 50 users each allocated 10 milliseconds; it takes only 500 milliseconds (½ a second) to
service them all.
Question. What happens to a user’s job if her time-slice is up and the job is not completed?
The job is interrupted and allocated some space on the disk where the job together with all
relevant status information is moved into. When the time comes to resume the job (or during the
next allocated time-slice), the job is rolled-in from the disk, and processing continues at the
point at which the interruption occurred.
25
Data processing techniques
1. In Bureaus that serve individuals or small companies who cannot afford the computer
facilities.
2. In learning institutions where there are many users.
Advantages of time-sharing systems.
1. Provides better services to users since the output is fast.
2. The processor’s idle time is utilized. This is because; the processor doesn’t have to wait for
the slower communicating peripherals.
3. Files are held online, hence enquiries or file interrogation is possible.
4. The user and the computer can communicate through the terminals connected to the central
computer.
5. It avoids duplication of software.
6. Terminal users can benefit from the facilities of the central computer.
7. It is helpful to small companies, which cannot afford to purchase a computer & the related
facilities. The company can be served at a fee through time-sharing processing mode.
Disadvantages of time-sharing systems.
1. Users have no control over the central computer.
2. The response is slow especially when there are many tasks.
3. There is no security of data.
Multi-programming systems
Multi-programming (also referred to as Multi-tasking) refers to a type processing where more
than one programs residing in the computer memory are executed concurrently by a single
Processor.
A multi-programming system allows the user to run 2 or more programs, all of which are in the
computer’s Main memory, at the same time.
The jobs are scheduled to run automatically by the Processor under the influence of a Multi-
programming or Multi-tasking operating system).
The schedule is such that; the Processor bound jobs (i.e., jobs that require much of the C.P.U
time as compared to the peripheral time) are assigned low priorities for them not to tie up the
C.P.U time. The Peripheral or Print bound jobs (i.e., jobs that require much of the peripheral
time as compared to the C.P.U time) are allocated the C.P.U time whenever it is available.
The OS allocates each program a time-slice, and decides the order in which they will be
executed. In this case, the programs take turns at short intervals of processing time. The
programs to be run are loaded into the memory and the CPU begins execution of the first one.
When the request is satisfied, the second program is brought into memory and its execution
starts, and so on.
Note. A Multi-programming system is able to work on several programs at the same time. It
works on the programs one after the other, and at any given time it executes instructions from
one program only. However, the computer works so quickly that it appears to be executing the
programs at the same time.
Advantages of multi-programming.
1. Increases productivity of a computer.
2. Reduces the CPU’s idle time.
3. Reduces the incidence of peripheral bound operation.
Disadvantages of multi-programming.
1. Requires more expensive CPU.
2. A Multi-tasking operating system is complex & difficult to operate.
3. Requires more expensive Input/Output facilities.
26
Data processing techniques
Review questions
1. (a). Define Multi-programming.
(b). What are the factors which make multiprogramming possible?
(c). State the benefits to be derived from Multi-programming?
(d). Discuss the hardware and software facilities necessary to facilitate Multi-programming.
Distributed processing.
Distributed data processing refers to dividing of processing tasks among 2 or more computers
that are located on physically separate sites, but connected by data transmission media.
For example;
An organization may have various computers that are located at various departments or business
sites, but linked together by communication lines. In such a case, each individual department or
business site is being served individually by its own computer resources.
The computers at different departments are usually of limited processing power (e.g.,
microcomputers), and only serve as terminals from the various departments. They are then
connected to a central computer of enhanced processing ability such as a Mini or a Mainframe
computer.
Salient features of distributed processing mode.
√ Each department or business site is served individually by the computer resources employed.
√ The Information generated in each department is used to influnce the decisions of individual
departments appropriately.
Computer configurations that can be used for Distributed processing systems.
Configurations where computers communicate to each other are described as Networks.
The following are computer arrangements that can be used for Distributed processing systems:
1. Local Area Networks (LAN).
This is whereby the network is within the same locality, and does not require the use
telecommunication links, e.g., same building.
2. Wide Area Networks (WAN) or Long Haul Networks (LHN).
These are networks that involve computers separated by long distance; hence, they
communicate through telecommunication links.
Note. Networks within the same city may be linked through Telephone lines or special Coaxial
cables, while far distant places may be linked through Satellite transmission channels or
ground Microwave systems.
Application areas of distributed processing.
1. In Banks:
All the branches have Intelligent terminals (usually microcomputers) linked to a big
computer at the Head Office. The customers’ accounts are operated on the servers in the
branches, while data from the branches is sent to the main server where it is processed.
Advantages of distributing processing.
1. The load on the Host computer is greatly reduced.
2. The distribution of processing power increases efficiency, and also the speed of processing.
3. The use of low cost minicomputers minimizes the cost in data processing.
4. Delays in data processing are reduced.
27
Data processing techniques
5. Provides better service to the customers.
6. There is less risk of system breakdown.
7. The design & implementation of the system is less complex due to decentralization.
8. The level of expertise required is less.
Disadvantages of distributing processing system.
1. It is expensive due to the extra cost of communication equipments.
2. Data duplication is very common.
3. Programming problems occur with Micro and Minicomputers.
4. More training is needed for the users involved.
Review questions
1. Most companies are now shifting from the use of centralized mainframe computers to the use
of geographically distributed personal computers. This method of data processing is known
as Distributed data processing (DDP).
Required:
(i). Name any three computing resources that can be distributed.
(ii). Name four examples of industries and business organizations that extensively use
distributed processing systems.
(iii). List and explain three ways of networking microcomputers/personal computers to form
a distributed data processing system.
(iv). Name three risks that might be associated with the distributed data processing system.
Interactive processing
Interactive processing occurs if the computer & the terminal user can communicate with each
other. It allows a 2-way communication between the user & the computer.
As the program executes, it keeps on prompting the user to provide input or respond to prompts
displayed on the screen. In other words, the user makes the requests and the computer gives the
responses.
In Interactive processing, the data is processed individually and continuously as transactions take
place and output is generated instantly.
Interactive processing is mostly applied in Ticket reservation systems.
Multi-processing systems
Multiprocessing refers to the processing of more than one task at the same time on different
processors of the same computer.
In a multi-processing system, a computer may have 2 or more independent processors, which
work together in a coordinated manner, and are sharing the same computer memory.
This means that, at any given time, the processors could execute instructions from two or more
different programs, or different parts of one program simultaneously. In such systems, each CPU
is dedicated to one type of application, e.g., one CPU may handle all terminal users, while
another may process only the batch jobs.
The activities of the system are coordinated by the Multi-processing operating system.
Advantage: - if one CPU fails, the other(s) can take over the workload until repairs are made.
Review questions
1. Explain the difference between Multi-Programming and Multi-Processing.
28
Data processing techniques
This refers to batch processing where jobs are entered at a terminal remote from the computer
and transmitted into the computer, e.g., by means of telecommunication links.
Conversational mode.
This is interactive computer operation where the response to the user’s message is immediate.
29