Disadvantages Of Serial Processing Operating System

DataFlair Team ·Published · Updated

1. Objective

While applying several spark operations on data to transform, classify information is “data processing”. Basically, there are two common types of spark data processing. Such as Batch Processing and Spark Real-Time Processing. In this blog, we will learn each processing method in detail. Also, learn the difference between Batch Processing vs Real Time Processing. We will also mention their advantages and disadvantages to understand in depth.

Batch Processing vs Real Time processing

2. Batch Processing vs Real Time Processing

Let’s start comparing batch Processing vs real Time processing with their brief introduction. We will also see their advantages and disadvantages to compare well.

a. Batch Processing

An efficient way of processing high/large volumes of data is what you call Batch Processing. It is processed, especially where a group of transactions is collected over a period of time. In this process, At first, data is collected, entered and processed. Afterward, it produces batch results. We can say Hadoop works on batch data processing. For input, process, and output, batch processing requires separate programs. Payroll and billing systems are beautiful examples of batch processing.
Let’s understand batch processing with some scenario. While sales team/employees would gather information throughout a specified period of time. Afterward, all that information would be entered into the system all at once. This whole procedure is known as Batch Processing. Generally, it works for printing shipping labels, packing slips and payment processing. In other words, this method also means waiting to do everything at once. Also, it means relying on the ability of your system to handle it all.
We can say, the batch processing system

  • Batch processing access to all data.
  • It might compute something big and complex.
  • Generally, it is very concerned with throughput. Rather than the latency of individual components of the computation.
  • Batch processing has latency measured in minutes or more.

i. Advantages of Batch Processing

  • Batch Processing is Ideal for processing large volumes of data/transaction. It also increases efficiency rather than processing each individually.
  • Here, we can do processing independently. Even during less-busy times or at a desired designated time.
  • For the organization by carrying out the process, it also offers cost efficiency.
  • Also, allows a good audit trail.

ii. Disadvantages of Batch Processing

  • The time delay between the collection of data and getting the result after the batch process.
  • In the batch processing master file is not always kept up to date.
  • Here, a one-time process can be very slow.
Batch vs Real Time Processing

b. Real-Time Processing

Real-Time Processing involves continuous input, process, and output of data. Hence, it processes in a short period of time. There are some programs which use such data processing type. For example, bank ATMs, customer services, radar systems, and Point of Sale (POS) Systems. Every transaction is directly reflected in the master file, with this data process. So, that it will always be up-to-date.
If you want analytics results in real time, Spark Real-Time processing is key. We can feed data into analytics tools, by building data streams, as soon as it is generated. Moreover, it gets near-instant analytics results by using platforms like Spark Streaming.
In addition, for tasks like fraud detection, real-time processing is very useful. Basically, if process transaction data, we can detect that signal fraud in real time. Also, can stop fraudulent transactions before they take place, through real-time processing.
We can say, the Real-Time processing system

  • Real-Time processing helps to compute a function of one data element. Also, can say it computes a smallish window of recent data.
  • Real-Time processing computes something relatively simple
  • While we need to compute in near-real-time, only seconds at most, we go for real-time processing.
  • In real-time processing, computations are generally independent.
  • They are asynchronous in nature. It means a source of data doesn’t interact with the stream processing directly.

i. Advantages of Real-Time Processing

  • While performing real-time processing, there is no significant delay in response.
  • In real-time processing, information is always up to date. Hence, it makes the organization able to take immediate action. Also, when responding to an event, issue or scenario in the shortest possible span of time.
  • It also makes the organization able to gain insights from the updated data. Even helps to detect patterns of possible identification of either opportunities or threats.

ii. Disadvantages ofReal-Time Processing

  • Real-Time processing is very complex as well as expensive processing.
  • Also turns out to be very difficult for auditing.
  • Real-Time processing is a bit tedious processing.

So this was all in Batch Processing vs Real Time Processing. Hope you like our explanation.

Tv serial actress lahari hot images

O lal meri pat by qurat ul ain balouch

3. Conclusion – BatchProcessing vs Real Time Processing

Hence, we have seen a comparison between Batch Processing vs Real Time processing in spark in detail. Hence, making a decision of selecting method depends on the current business system. Basically, there are various conditions on which it depends, whether to use one over the other. For example, type & volume of data and time that the data needs to be processed. Thus, select the one that best suits your business system. Hope we have answered all the questions regarding Batch Processing vs Real Time Processing.

For reference.

I dealt with computers first when I was in the elementary school around 1998, where I used to play Sky Roads on DOS computers. 2000 was the year I convinced my father to buy a computer at home, Some guy came at home and installed Windows so that we can deal with the computer, This Windows was like a mysterious thing or like a ghost that controls my PC, Actually I didn’t pay attention to know what Windows is all about rather than it is a kind of “Operating System” ! but as an end-user I was very good at using it.

Now as a computer science student, I figured out what Operating System – abbreviated OS – is all about, this article intend to give a brief overview to Operating Systems.

What is OS?

  • A program that controls the execution of application programs, and act as an interface between the application and the computer hardware.
  • It has 3 objectives:
    • Convenience; makes computer more convenient to use.
    • Efficiency; allows us to use computer resources in an efficient manner.
    • Ability to evolve; allow for further development to allow to system functions.

OS as a user/computer interface

  • OS provides a variety of services in the following areas:
    1. Program development: editors, debuggers they are tools supplied with the OS.
    2. Program execution: automate a number of steps to execute a program.
    3. Access to I/O devices: act as a façade to I/O devices.
    4. Controlled access to files: provide protection mechanism to control access to files.
    5. System access: protect system data and resources from unauthorized users.
    6. Error detection and response: detect program and hardware errors so as to clear the error condition with the least impact on the running applications.
    7. Accounting: monitoring system resources and collect usage statistics, help in judging whether to upgrade the resources or it is efficient enough.

OS as a Resource Manager

  • Memory allocation is controlled by the OS and the MMU (Memory Management Unit).
  • The OS decides when I/O device can be used by a program in execution.
  • Control access to and use of files.
  • The processor operation itself is controlled by the OS, that OS decides how much time the processor can spend on a particular program.

What makes OS evolve ?

  1. Hardware upgrades and new types of hardware: New types of hardware require that the OS be able to deal with it, so OS should be built with support for that hardware.
  2. New services: OS offers new services demanded by the users or system managers.
  3. Bug Fixes: Bugs appear over time, and detected by users, so OS should be fixed for this bugs, and sometimes fixing a bug raise another bug.

OS Evolution

In the dark ages, when there was no OS from late 1940s to mid-1950s (I call this years: before OS, abbreviated BOS like BC) the programmer had to deal directly with the computer hardware, These computers were run from a console consisting of display lights, toggle switches, some form of input device.

Free download final destination 4 full movie in hindi. Final Destination Hindi Dubbed All Part Free Download,Final Destination Hindi Dubbed All Part Filmywap 2018 2017 Full Movies in HD Mkv Avi. Hollywood Hindi (2017) Full Movies Added. Final Destination 4 (2009) Hindi Dubbed Movie. Oct 14, 2017 - Final destination 4 full movie download in english. Download:Final Destination 4 In Hindi 2009 HD.mp4. Free Download Final Destination 4 In. Jan 21, 2018 - The Final Destination 4 (2009) Hindi Dubbed Full Movie Watch Online HD Print Free Download,Full Movie Watch Online The Final Destination. Dec 25, 2017 - Final Destination 4 In Hindi Dubbed Full Movie Watch Online Download Free,Final Destination 4 full movie,Final Destination 4 movie online.

  • Serial Processing:

    • This systems presented two main problems
      1. Scheduling: users had to sign-up sheet to reserve computer time, users couldn’t`t know precisely how long it will take to finish their program.
      2. Setup time: A single program called a job had to be installed before used with its compiler and code, saving the object program and linking and so on to run the program.
    • Users have access to computer in series.
    • Simple Batch Systems
      • Monitor: a software program that handle executing the jobs provided by the user on tapes or disks.
  • Multiprogrammed Batch Systems

    • The I/O devices are much slower than the processor, leaving the processor idle most of the time waiting for the I/O devices to finish their operations.
    • Uniprogramming: the processor starts executing a certain program and when it reaches an I/O instructions, it must wait until that I/O instructions is fully executed before proceeding.
    • Multiprogramming: in contrast to the uniprogramming, when a job needs to wait for an I/O instruction, the processor switches to another job executing it until the first job finishes its waiting I/O instructions, the processor continue to swap between jobs as it reaches an I/O operation.
    • Multiprogramming batch system must rely on certain hardware capabilities such as process switching when swapping between program execution.
    • Interrupt-driven I/O or DMA helps a lot in multiprogramming environments, allowing the processor to issues an I/O command and proceed executing another program.
  • Time-Sharing Systems

    • As multiprogramming allows processor to handle multiple batch jobs at time, it can allow the processor to handle multiple interactive jobs at time, through time sharing.
    • Time Slicing: there is a system clock that generates interrupts at a constant rate, allowing the OS regain control and assign the processor to another process.

Time sharing and multiprogramming raise a host for new problems

  • If multiple jobs are in memory they must be protected from interfering with each other.
  • File systems must be protected from access by unauthorized users.
  • The programs contention for resources (mass storage, printer, … ) must be handled by the OS.

Major Achievements in OS

  • The Process
    • Possible Definitions:
      • A program in execution.
      • An instance of a program running on a computer.
    • The interrupt helped programmers in developing early multiprogramming and multiuser interactive systems.
    • Errors caused by handling more than one process at time is:
      1. Improper synchronization
      2. Failed mutual exclusion: allow only one routine at a time to perform an update against the file.
      3. Non-determinate program operation: programs may interfere with each other when they share memory and their process is interleaved by the processor.
      4. Deadlocks: 2 programs hung up waiting for each others to release a resource.
    • The execution context or the process state is the internal data by which the OS is able to control the process.
    • The context contains the content of the processor registers, as with information to use by the OS as the priority of the process.
  • Memory Management
    • Process Isolation: OS should prevent independent processes from interfering with each other.
    • Automatic allocation and management: Programs should be dynamically allocated, and allocation should be transparent to the programmer.
    • Support of modular programming: Programmers should be able to write their own programs and create, destroy and alter the size of it dynamically.
    • Long-term storage: saving information for extended periods of time.
    • Protection and access control.
  • Information Protection and Security
    • the use of time-sharing systems, computer networks has brought concern for the protection of information.
    • We are concerned with the problem of controlling access to the computer system.
    • Work in this area can be grouped in:
      • Availability: protect the system against interruption.
      • Confidentiality: users cannot read data for which access is unauthorized.
      • Data integrity: protection of data from unauthorized modification.
      • Authenticity: verification of the identity of the users and validity messages.
  • Scheduling and Resource Management
    • Any resource allocation and scheduling policy must consider:
      1. Fairness: jobs of the same class competing for a resource are to be given equal and fair access to that resource.
      2. Differential responsiveness.
      3. Efficiency: OS should maximize processor utilization, minimize response time, and accommodate as many users as possible.
    • OS elements involved in the scheduling of process and the allocation of resources in a multiprogramming environment:
      • Short-term queue: contains processes in the main memory and are ready to run as soon as the processor is made available.
      • Short-term scheduler: decides which process in the short-term queue to use the processor, a common strategy is to give each process some time in term (round-ribbon) technique.
      • Long-term queue: list of all new jobs waiting to use the processor, the OS adds jobs to the system by transferring process from the long-term queue to the short-term queue.
      • I/O queues: each device has a queue for the processes waiting to use that device; it is the OS that decide which process to assign to an available I/O device.

References

Advertisements
Posted on