Concurrent reading of a File (java preferred)

后端 未结 4 773
醉话见心
醉话见心 2020-12-08 02:51

I have a large file that takes multiple hours to process. So I am thinking of trying to estimate chunks and read the chunks in parallel.

Is it possible to to concurr

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 03:27

    You can process in parallel, however your hard drive can only read one piece of data at a time. If you read in the file with a single thread, you can then process the data with several threads.

提交回复
热议问题