Real-time processing is data processing that occurs as the user enters in the data or a command. Batch processing involves the execution of jobs at the same time. The main difference is that administrators can postpone batch processes, while real-time processes must occur as soon as possible.
-
Time Frame
The time between when the user inputs the data into the computer and when the computer performs the expected output is called the response time. Real-time systems have predictable response times. Outputs are successful if they are accurate and timely. Response times do not necessarily have to be fast. There is no speed where a process is considered real-time and all processes have some delay. A system is “real-time” when processing activities have deadlines. Batch processing does not have a specific moment at which tasks are completed, with tasks being completed when the computer is able to complete them, based on the processing demands of the tasks and the processing speed of the computer.
-
Deadlines
A hard real-time system is one in which the failure to meet even one deadline indicates a complete system failure. With soft real-time, missing a deadline indicates that the system is not working at its peak. In batch processing, missed deadlines might mean that the computer needs more processing capacity to finish tasks.
-
Embedded
Real-time systems are usually reactive, meaning they behave based on the conditions of the environment. Real-time processors are usually embedded, meaning they do not have an operating system interface and are used only to control hardware devices. For example, a digital thermometer might have a real-time processor embedded in the thermometer that gives a continuously correct temperature. Batch processes are usually a part of a larger computer system.
-
Predictability Vs. Flexibility
Real-time systems have specific and predictable outputs that occur in response to an input. The number of outputs that a real-time system can have is usually fixed. For example, on the thermometer, the number of readings the thermometer has is fixed and the thermometer will not perform unique actions, such as reading “the meat is done.” Administrators can usually adjust batch processes to serve different purposes.
-
Postponing
With batch processing, processes are saved for when the computer is not executing very many tasks, such as in the evening when a business is not very busy. For example, a company can refrain from running antivirus scans when the company is busy, since the scans use up computer processing power. Administrators often start antivirus scans at night, when most of the workers have gone home. Real-time processing usually occurs whenever the processor receives an input.
-
Outside Computing
Batch processing also occurs outside computers. For example, instead of sending a bill to a customer every time the customer pays for a service, a company might send a bill every month so that the company doesn’t have to spend as much on postage. Real-time processing usually only refers to computers and microcontrollers.
Real Time System vs Online System
We are all used to real time systems as we deal with them in all walks of life. We also know what an online system is as surfing is a particular example of online system that is all pervasive today. There are online systems that are almost real time as RTGS which is online system of transfer of funds electronically. When there is so much similarity between online and real time systems, there is bound to be confusion among the minds of readers pertaining to their differences.
Online has just one meaning and that is when one is logged on to internet. Whether you are playing a game online, tracking movement of share prices, or talking to your friend via instant messenger, you are effectively dealing with online systems. There are systems that update automatically after a specified time and there are systems where you need to refresh the page manually. There is some time lag between the event that is happening and the time when the web page refreshes. If you are watching a live telecast of a cricket match online, it is not real time as you get to see a wicket falling or a ball being bowled after a lag of a few seconds.
A real time system changes its state as a function of physical time. Some examples of real time systems are command and control systems, defense and space systems, air traffic control systems, automated electronics. Real time systems are not dependent upon just logical results of manual computations but also on the exact instant that the events happen or take place. One example of real time system is when you are chatting with your friend online. You see the reaction of the system as soon as you type in the messenger. Because of advancements in technology and increase in the number of users, many online systems today are almost real time.
Railway reservations systems are one example where you get immediate booking as soon as you press the button ‘confirm’ and thus it is an online system that is also real time.