|
|
|
|
|
by sureglymop
398 days ago
|
|
Perhaps I misunderstand something but doesn't reading from a file require a system call? And when there is a system call, the context switches? So wouldn't using multiple threads to read from a file mean that they can't really read in parallel anyway because they block each other when executing that system call? |
|
Also, modern filing systems are all thread safe. You can have multiple threads reading and even writing in parallel on different CPU cores.