"Dave Korn" <[EMAIL PROTECTED]> writes: > > It's irrelevant to the main discussion here, but in fact there is a > > fair amount of possible threading in the linker proper, quite apart > > from LTO. The linker spends a lot of time reading large files, and > > the I/O wait can be parallelized. > > That's not even thread-worthy, that just required bog-standard AIO > techniques. Um, /are/ there suitably portable AIO techniques? I guess the > answer is going to be "Yeah, spawn a posix thread and make an ordinary > synchronous f* io call in there"! Heh.
There is a POSIX standard: aio_read and friends. However, on GNU/Linux, aio_read just does the read in a different thread anyhow. So aio_read and friends are just a slightly simpler threading interface. Ian