Open NattyNarwhal opened 6 years ago
Looks like i doesn't have pollset. Disappointing, because the API seems congruent with epoll.
Neither are IOCPs.... except maybe they are? The docs say they're in the ILE environment since V5R1; but i doesn't have the header files for it - yet AIX does!
I'm not familiar with IOCPs. If you link to the doc I can check whether it's supported in PASE.
ILE docs but not really in PASE.
So AFAICT, ILE supports only 1 socket at a time (and only supports socket file descriptors). AIX docs show it's part of the IOCP kernel extension for AIX, so this would not be supported on IBM i.
What we've done for every other language we've ported out there is just live with poll. Feel free to open an RFE for pollset APIs, though.
Select/poll for IO is pretty primitive compared to what modern OSes offer. AIX has three choices:
Poll set, recommended nowadays; allegedly similar to epoll?
IOCPs, which seem to be API level compatible with Win32. Not making that up.
AIO
Considerations: performance, reliability, i compatibility, ease of adaptation.
I believe stuff for threadpool and utils would have to be changed.