Alain Martel <kua### [at] videotronca> wrote:
> > I observed using htop process viewer that Povray, at least in v3.7, uses only a
> > single core to read and write files. In a 6 core i5 processor only core 6 was at
> > 100%.
> > Cheers.
> The reason is very simple : Reading or writing a file can't benefit from
> the use of multiple threads. It's a purely iterative process that can't
> get split in several threads.
> The same hold true for parsing. Purely single thread.
Yes and no. At least in reading SSD drives, it's possible to load buffers in a
multi-threaded "pre-fetch" mode. The rationale being that the main thread can
then switch between buffers and block load them to memory instead of single
thread process doing both reading and writing. Or, as the buffers occupy known
addresses and have known sizes, can be chained sequentially for reading. The
programming to accomplish it isn't trivial but it is doable. Cheers.
Post a reply to this message