how to do multiprocessing in java, and what speed gains to expect?

前端 未结 6 1884
失恋的感觉
失恋的感觉 2021-02-02 14:44

I am a newbie using Java to do some data processing on csv files. For that I use the multithreading capabilities of Java (pools of threads) to batch-import the csv files into Ja

6条回答
  •  余生分开走
    2021-02-02 15:13

    Each developer should have some understanding about Amdahl's law to understand how the multi processing would speed up based on the given conditions.

    Amdahl's law is a model for the relationship between the expected speedup of parallelized implementations of an algorithm relative to the serial algorithm, under the assumption that the problem size remains the same when parallelized.

    This is a good read : Amdahl's law

    Amdahl's law

提交回复
热议问题