Will using multiple threads with a RandomAccessFile help performance?

后端 未结 7 2125
滥情空心
滥情空心 2020-12-03 16:32

I am working on a (database-ish) project, where data is stored in a flat file. For reading/writing I\'m using the RandomAccessFile class. Will I gain anything f

7条回答
  •  情歌与酒
    2020-12-03 16:50

    A fairly common question. Basically using multiple threads will not make your hard drive go any faster. Instead performing concurrent request can make it slower.

    Disk subsystems, esp IDE, EIDE, SATA, are designed to read/write sequentially fastest.

提交回复
热议问题