Monday, July 22, 2024

LANJET PRE-MOCKS TERM 1 2024 QUESTIONS & ANSWERS.

LANJET PRE-MOCKS TERM 1 2024 QUESTIONS &...

EXTENDED HOLIDAY ASSIGNMENTS TERM 1 2024 FORM 3 Q&A.

EXTENDED HOLIDAY ASSIGNMENTS TERM 1 2024 FORM...

EXTENDED HOLIDAY ASSIGMENTS FORM 2 TERM 1 2024.

EXTENDED HOLIDAY ASSIGMENTS FORM 2 TERM 1...

Become a member

Get the best offers and updates relating to Liberty Case News.

― Advertisement ―

spot_img

SULPHUR AND ITS COMPOUND

SULPHUR AND ITS COMPOUND SULPHUR AND ITS COMPOUND:A.SULPHUR (S) Sulphur is an element in Group VI(Group 16)of the Periodic table . It has atomic number 16...

CARBON AND ITS COMPOUND

WATER AND HYDROGEN

HomeNotesCOMPUTER STUDIES NOTESDATA PROCESSING (part2)

DATA PROCESSING (part2)

DATA PROCESSING (part2)

 Part 2 COMPUTER FILES

DATA PROCESSING (part2)-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

Logical and physical files

Computer files are classified as either; Logical or Physical.

Logical files.

A Logical file is a type of file viewed by the user in terms of what data items it contains & what processing operations may be performed on the stored data items.

Physical files.

A Physical file is viewed in terms of how the data items found in a file are arranged on the surface of the storage media (e.g., disk, tape), and how the stored data items can be processed.

DATA HIERARCHY.

In data processing, data is organized from the smallest element to the most comprehensive.

Bits

Characters

Fields             (a group of characters)

Records          (a collection of fields)

File                 (a combination of related data records maintained in some pre-arranged order)

Database        (consists of several related and integrated data files)

Bit:

A Bit is the smallest item that can be stored in a physical file.

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.

ELEMENTS OF A COMPUTER FILE.

A computer file is made up of three elements:

Character

A character is the smallest element in a computer file, and can refer to a letter, number, & symbol that can be entered, stored and output by a computer.

A character is formed by several bits combined together, depending on the character coding system used, e.g., in a 6-bit character coding system, a character is represented by a combination of 6 bits.

Characters are normally used to represent data items such as Names, Prices, etc.

Fields

A field is an item of data or information consisting of one or more characters.

A Field is made up of a combination of characters, and forms the attribute of a given entity, e.g., in a student’s record, the students Admission number is a field.

There are 2 types of fields;

  • Fixed length fields – these are fields with the same numbers of characters.
  • Variable length fields – fields within a record that are made up of different numbers of characters (i.e., fields with different spaces allocated for their characters).

Records

A record is a collection of related fields, which together form or represents a single entity.

In any particular file, there is a separate record for each entity, e.g., in a class score sheet, the details of each individual student in a row such as name, admission number, total marks, and position form a record.

There are 2 types of fields;

  • Fixed length records – records in a file that are made up of the same number of fields.
  • Variable length records – records that have different number of fields making them. If the records have different spaces preserved for them, then it implies that, all the records in the file will not have the same size.

Note.  Variable length records normally utilize the storage efficiently.  However, processing or updating them in a computer is difficult because; the programmer is dealing with unknown quantities.

On the other hand, fixed length records do not utilize the storage efficiently, but they are easy to process because; the programmer is dealing with known character quantities.

TYPES OF COMPUTER PROCESSING FILES.

There are various types of files used to store data needed for processing.  Data processing files are classified according to:

  • Their uses within the overall data processing activities.
  • The kind of data/ information they store.

The main types of data processing files include:

  • Master files.
  • Transaction files.
  • Reference files.
  • Sort files.
  • Backup files.
  • Scratch files.
  • History files.
  • Report files.

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.

  • 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

  • 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.

Transaction (Movement) files.

A Transaction file contains individual data about the transactions (activities) that occurred in a business during a particular period of time.

The file contains relatively temporary information such as all incoming or outgoing records resulting from a transaction.

Transaction files are usually created from the source documents, which contain data from the point of their origin.

The contents in a Transaction file are used to update the dynamic data on Master files.  For example, in a busy supermarket, daily sales are recorded on a transaction file, and later used to update the stock file.  The file is also used by the management to check on the daily or periodic transactions.

Transaction files have a short life span.  This is because, once the contents of the file have been used to update the master file, its contents are no longer required, and can be replaced by the next business transactions.

Examples of transaction files: 

Files that contain Earnings & deductions of an Employee, or payments received from customers.

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-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.

History (Archive) files.

History files are usually old files retained for historical use or for reference purposes, e.g., it can contain Employee details for the last 10 yrs.

Key field.

A Key field is one or more fields in a record that uniquely identifies the record or a group of records.

E.g., an Employees Serial number may be used to identify the employee records in a Payroll file.

Note.  Any field in the record can be used as the key field.  However, it should display unique identification characteristics.

Review questions

  1. Define a computer file.
  2. State four advantages of storing data in computer files over the manual filing system.
  3. Differentiate between Logical file structure and physical file structure.
  4. With the help of a figure, illustrate the information system Data hierarchy.
  5. Define the following terms:
  • Key field.
  1. List 5 types of files used in data processing and their purposes.

FILE ORGANIZATION

DATA PROCESSING (part2)

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. 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.

DATA PROCESSING (part2)

Record 2

K2

Record 3

K3

Record 8

K8

Record 92

K92

Record 1

K1

 

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.

Serial file organization.

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.

Record

1

IRG Record

2

IRG Record

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,.

Sequential file organization.

In Sequential file organization, the records are arranged within the file serially one after the other.  However, in sequential file organization, the records are stored in a particular order sorted using a key field; hence, there is a relationship that exists between adjacent records and the key fields.

Record 1

K1

Record 2

K2

Record 3

K3

Record 4

K4

 

K1 – K4 – Record keys.

Sequential files are accessed sequentially, i.e. the key field is used to search for the particular record required.  Searching starts at the beginning of the file and proceeds sequentially towards the ‘tail’ of the file, until the required record is located.

Advantages of Sequential organization.

  1. The method is simple & easy to understand.
  2. Sequential files are easy to organize and maintain.
  3. Loading or reading a record requires only the Record Key.
  4. It is efficient & economical if the number of file records to be processed is high.
  5. Relatively inexpensive Input/Output media and devices may be used.
  6. Errors in the files remain localized.

Disadvantages of Sequential organization.

  1. The entire file must be processed even when the no. of file records to be processed is low.
  2. Transactions must be sorted in the sequence of the Master file before they can be processed or updated.
  3. Data redundancy/idleness is high since the same data may be stored in several files sequenced in different keys.
  4. Random enquiries are almost impossible to handle.

Indexed Sequential file organization.

The records are arranged sequentially as in sequential files.  However, indexed sequential files have an Index that enables the computer to locate individual records on the storage media.

An Index is the address of a particular cylinder or track.  The indexes are used to point at the portions where the records are stored in groups.  This allows a group of records that are not required in a particular processing run to be bypassed.

a                                  b                                    c

DATA PROCESSING (part2)

Record 1

K1

Record 2

K2

Record 3

K3

Record 4

K4

Record 5

K5

Record 6

K6

DATA PROCESSING (part2)

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.

Methods of accessing Indexed sequential files.

 Indexed sequential files may be accessed using 3 methods;

  • Sequential access.
  • Selective sequential access.
  • Random access.

Sequential access:

In sequential access, the computer reads the records in sequential order (i.e., one record after the other) using the index until the record matching the search key is found.  The record is then read into the Main memory.

Sequential access is suitable for high activity files.

Selective Sequential access:

In this selective sequential access, the transaction file must first be sorted into the same key sequence as the master file.  The access mechanism then goes forward in an ordered progression (sequence), and only those records needed are read/processed.

The method is suitable for low activity files.

Random (direct) access:

The records in a Random file are not stored in any particular sequence of the key field.  This means that, the records can be processed in any sequence, i.e., by moving access mechanism forward and backwards along the file in a non-orderly manner to access the records required.

The method is suitable for low activity files.

Advantages of Indexed sequential file organization

  1. Records can be accessed sequentially or randomly.
  2. Accessing of records can be fast, if done randomly.
  3. Records are not duplicated.

Disadvantages of Indexed sequential file organization.

  1. Accessing of records sequentially is time consuming.
  2. Processing of records sequentially may introduce redundancy/idleness.
  3. Required expensive storage medium.

Comparison of File organization methods.

DATA PROCESSING (part2)

Method Method of access Medium used Example of file
1.    Random Random Magnetic disk.

Optical disk

Master files requiring fast reference or enquiry.
2.    Serial Serial Magnetic tape.

Magnetic disk

Unsorted transaction file
3.    Sequential Serial (Sequential) Tape, Disk Sorted transaction file, or Sequential Master file.
4.    Index Sequential (a).   Sequential

(b).   Selective sequential

(c).    Random

Magnetic disk Master files requiring various processing activities.

 

File organization & access on a Magnetic Tape.

In a Magnetic tape, the file records are placed one after the other onto the tape.

There are 2 ways in which files are arranged on tapes:

  • Serial:

In serial organization, the records are written onto the tape without having any relationship between the record keys.

  • Serial files on a tape are accessed serially, i.e., each record is read from the tape into main storage one after the other in the order they occur on the tape.
  • Sequential.

In Sequential organization, the records are written onto tape in sequence according to the record keys.  Sequential files are accessed sequentially.

Explanation;

To process a sequential Master file on a tape, the transaction file must be in the sequence of the Master file.  The transaction file is read first, followed by the Master file until the matching file record is found.  E.g., if the record required is the 20th record of the file, the computer must first read all the 19 preceding records.

File organization & access on a Magnetic Disk.

There are 4 basic methods of organizing files on a Magnetic disk:

  • Serial:

The records are placed onto the disk one after the other with no regard for sequence.

  • Serial files on a disk are accessed Serially, e. each record is read from the disk into main storage one after the other in the order they occur on the disk.
  • Sequential:

In sequential organization, the records are written onto the disk but in a defined sequence according to the record keys.

  • The Sequential method of access is used to read a sequential disk file.
  • Random:

In random organization, the records are placed onto the disk “randomly”, (i.e. there is no obvious relationship between the records).

A mathematical formula is used to generate the address of the location where the record is placed on the disk.  During processing, the same record key is used to generate the address which shows the location from which the record is read.

  • The method of access to random files is Random (direct) access.
  • Indexed Sequential:

In Indexed Sequential organization, the records are stored in sequence, but an Index (key field/guide) is provided to enable individual records to be located.  In this case, the index will always enable the sequence of the records to be determined.

Indexed sequential files can be accessed using sequential access, selective sequential access, or random access method.

Factors to consider when choosing the type of file organization to use.

  • Frequency of update.

The file designer should determine how often the file is going to require updating.

For periodic updates (e.g., monthly update), the transactions are used to update the master files in one run.  For the non-periodic systems, the transactions may be updated anytime as required.

The file design selected should therefore be able to meet the update strategies, and at the required time.

  • File activity.

The type of file organization adopted should be based on the expected number of records to be processes/accessed in a particular run.

  • Method of file access.

This refers to the method the computer shall use to transfer the contents of the file from the storage media into the computer.

  • Nature of the system.

Before designing the file(s) to be maintained by a computer system, you have to consider whether the system runs periodically or is an event-driven system.

In periodically run systems, all transactions relating to particular business are accumulated over a period of time, after which they are applied to the relevant master files in a single run.  Such systems produce periodic reports from the maintained files.

On the other hand, event-driven systems allow file enquiries and instant update so long as the transactions are available from the maintained master files for the production of instant information.

  • Medium for storing the Master file.

Computer files are stored in the storage media.  The type of file organization adopted depends on the medium that will be used to store the computer file.

E.g., Serial access devices, such as Magnetic Tapes cannot be used to store Random files or Indexed-sequential files.  This is because; searching for the particular record required proceeds serially regardless of the file organization method used.

Review Questions.

  1. What do you mean by File Organization?
  2. State and explain four types of file organization.
  3. Distinguish between:
    • Sequential and serial file organization methods.
    • Random and indexed-sequential file organization methods.
  4. (a). Describe how files are organized and accessed on tape.

(b). What are the disadvantages of storing files on tape?

  1. Differentiate between Sequential and Indexed Sequential methods of file organization on disk.
  2. (a). What is random file organization? State its advantages.

(b). How are Random files accessed on disk?

  1. Identify four file processing methods.
  2. Discuss four considerations for choosing a file organization method.

Part 3 ELECTRONIC DATA PROCESSING MODES

Data processing modes describe the ways in which a computer, under the influence of an operating system, is designed to handle data or transactions during processing.

Types of electronic data processing modes

  1. Batch processing (also referred to as Sequential or Offline processing)
  2. Online processing
  3. Real-time processing
  4. Time-sharing
  5. Multi-programming (also referred to as Multi-tasking)
  6. Multi-processing.

Distributed processing

  1. Interactive processing

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. 

Characteristics/ Features of Batch processing system.

  • The input device does not necessarily need to be connected to the computer.

If the device used for data entry is not connected to the computer, it is said to be Off-Line (away from the computer).

  • The data is not immediately input into the computer, and it is not even immediately recorded in a machine-readable form.
  • The speed of processing is not important. This implies that, processing of the data is done at whatever time is most convenient.

Application areas for Batch processing systems.

Batch processing is commonly applied in:

  1. Payroll systems.

The attendance data of each employee is collected regularly.  It is then input weekly or monthly as per the demands of the system, processed, & then the pay figures for each employee is obtained.

  1. Printing systems (to print documents)

Advantages of Batch processing.

  1. Batch systems are easy to develop.
  2. Processing of data in batches is efficient & economical.
  3. The cost of processing per unit is low.
  4. Batching provides manageable units for control purposes.
  5. Timing of the information (reports) is not a necessity.

Disadvantages of Batch processing.

  1. There are delays in obtaining information.
  2. It leads to overloading of the processing facilities.
  3. Late information is not suitable in situations where instant decisions are required.
  4. It is difficult to provide the scheduling of the desired priority.

Review questions 

  1. Briefly explain Batch processing.
  2. Describe the application, advantages and disadvantages of batch processing.

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.

  • 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.

  1. Stock exchanges:

Terminals located in major stock exchanges throughout the country enables quick processing of shares dealings.

  1. Stock control:

Terminals located in warehouses enable stock records to be re-ordered automatically, make reservations, follow-up of outstanding orders, & print picking lists.

  1. Manufacturing plants: – to control the progress of work.
  2. 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).

Disadvantages of online processing.

  1. Online systems are complex to develop.
  2. They are costly in terms of hardware, software, storage media, operating system, communication facilities, etc.

Review questions

  1. (a). Discuss Online processing.

(b). Mention and explain the Application, Advantages and disadvantages of Online

processing mode.

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.

  • There must be a direct connection between Input/Output devices & the central Processor.
  • The Response time should be fairly fast, to allow a 2-way communication (interaction) between the user & central processor.

Characteristics/ features of real-time data processing.

  • Provides immediate response on receipt of a message, e.g., enquiries may be answered immediately.
  • The system can respond very quickly to a change of circumstances and initiate a feedback.
  • They have complex & expensive Operating systems, and usually involve Multi-processing (use of 2 or more processors) to share the workload.
  • Real-time systems must be fast and reliable.
  • Real-time systems are dedicated to one type of application.

Application areas for real-time systems.

Real-time systems can be used in applications that require:

  • Quick response.
  • A much short time cycle before the information is available to effect the functioning of its environment.

Examples:

  1. Airline reservation systems:

An individual cannot be booked before enquiring whether the airline seat is available.  The customer may request for an airline booking information through a remote terminal and the requested information will be given out immediately by the reservation system.  If a booking is made, the system immediately updates the reservations file to avoid double-booking, and sends the response back to the customer immediately.

This implies that, before the next transaction can be processed, the files must have been updated by the previous transactions.

  1. Theatre (cinema) booking.
  2. Hotel reservations.
  3. Banking systems for making enquiries about customers’ accounts.
  4. Police enquiry systems.
  5. Chemical processing plants:

If the temperature is to be regulated, then a rise in temperature requires immediate reaction for correction to restore it to an equilibrium state.

  1. In Missile control systems
  2. In Hospitals – to monitor the progress of a patient.

 Advantages of real time systems.

  1. The information is readily available for instant decision-making.
  2. Provides better services to users or customers.
  3. It is a fast & reliable mode of data processing.
  4. Validation of data can be done instantly.
  5. Reduces circulation of hardcopies.
  6. Provides up-to-date information.

Disadvantages of real-time systems.

  1. Real-time systems are very expensive & require complex Operating systems.
  2. The systems are not easy to develop.
  3. They require large communication equipments, e.g., they require a Front End Processor (FEP), which is used to relieve the central computer by handling some of the limited processing activities, and also link the terminals to the central computer.
  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.

QuestionWhat 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.

Characteristics of a time-sharing processing mode.

  • Each user has one or more Input/Output devices connected to the central computer by communication lines.
  • Each user is independently of the others who are connected to the system.
  • Each user has its own private set of programs plus access to a set of public programs.
  • The central computer accepts the data & instructions arriving simultaneously from many users, and gives each user a small but frequently repeated segment of computer time.
  • Data files, program files, and Input/Output devices are all directly connected to the computer, so that processing can be performed at random as requests for transactions are made.

Application areas for time-sharing.

  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.

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.

  1. 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.
  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:

  • Name any three computing resources that can be distributed.
  • Name four examples of industries and business organizations that extensively use distributed processing systems.
  • List and explain three ways of networking microcomputers/personal computers to form a distributed data processing system.
  • 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.

Remote job entry (RJE) systems.

 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.

Factors to consider when selecting the Data processing mode.

  1. Type of computer configuration to install.
  2. Suitability of accumulating data (transactions) into batches for processing.
  3. How the processing time would be optimized.
  4. How fast the information should be produced if it is to be used for decision-making.
  5. Cost of acquiring the relevant hardware, software, storage media & the cost of maintenance.
  6. Ease of development, use, and subsequent maintenance.
  7. How the resources (e.g., files, I/O devices) would be controlled.
  8. The data communication equipment needed, the cost involved & their convenience.
  9. The need for sharing resources among several users.

Review questions 

Mention 5 factors to be considered when selecting the data processing mode suitable for use in organization

MORE NOTES

JOIN US ON TELEGRAM