Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

How will you improve the performance of an application by multi-threading?

Pragya Keshap answered on February 4, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • does multithreading slow down the system
  • # multithreading for optimal use of CPU
  • Why do we want to use multiple threads in an application?
  • Issues with multithreading

  • How will you improve the performance of an application by multi-threading?

    0

    In an environment with more than one CPU, we can parallelize the

    computation tasks on multiple CPUs. This leads to parallel

    processing of a bigger task that takes lesser time due to multiple

    threads dividing the work among themselves.

    One example is that if we have to process 1000 data files and

    calculate the sum of numbers in each file. If each file takes 5

    minutes, then 1000 files will take 5000 minutes for processing.

    But by using multi-threading we can process these files in 10

    parallel threads. So each thread will take 100 files each. Since now

    work is happening in 10 parallel threads, the time taken will be

    around 500 minutes

    https://www.techtarget.com/searchitoperations/tip/Improve-application-performance-with-multithreaded-applications

    Popularity 2/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 04 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.