What is the optimal number of threads for performing IO operations in java?

前端 未结 7 1882
陌清茗
陌清茗 2021-01-01 17:54

In Goetz\'s \"Java Concurrency in Practice\", in a footnote on page 101, he writes \"For computational problems like this that do not I/O and access no shared data, Ncpu or

7条回答
  •  隐瞒了意图╮
    2021-01-01 18:17

    See also Will using multiple threads with a RandomAccessFile help performance?

    UPDATE: I added a benchmark there.

提交回复
热议问题