AIO as replacement for mutlithreading ?
Posted Mar 9, 2004 21:47 UTC (Tue) by mwilck
In reply to: One at a time
Parent article: A retry-based AIO infrastructure
What are you referring to as a "thread"? An AIO request? How can other AIO requests "wake up, do some stuff" if the kernel is still handling the floppy request which blocks the single AIO entry for the process?
Guess I must read the code myself.
I may have put my concern in the wrong words though. One idea I have about AIO is that you can have an application behave like a multithreaded application with a singe thread. Instead of creating threads for certain IO tasks you just fire off AIO requests and they _proceed simultaneously_, as if they were driven by different threads. I wonder how that'd be possible with the serialized approach described here. Perhaps the whole notion is wrong, though?
to post comments)