I read the packets from NIC in high rate and my writing speed is my program bottleneck would be caused packet losts. I browsed the web for solutions, and have reformed my code with AIO solutions and neither POSIX nor Linux-libaio satisfy my requirement for high rate writing with no lost.
Now I want to have a specific thread as writer in AIO which is bound to specific CPU core which is separated from program's main core.I tried to do that with POSIX and Linux-libaio but failed. POSIX creates two threads while program execution but both of them are on same CPU.
It will be appreciated if anyone help me to know that is there any possibility to persuade OS to create a specific thread in AIO as writer and assign a specific CPU core to it?
Note: my programming language is C on Linux