Hi all;
Forget UDP Port.
I have a list to handle without delay. Using sleep or waitforsingleobject affects 16ms latency while switching windows messages.
I can't use IOCP because i have to process the list in an order FIFO.
I'm not sure which approch is the right way or any other approch to do this.
My first approch is not to use sleep or any other waiting objects. In this case CPU will use %20.
My second idea is setting one thread for this job by using SetThreadAffinityMask. This thread will use allways one CORE witout balancing with other Core's. It also use %20 of Total CPU but the differences is it's not going to switch between other CPU's.
Which one is the best approch? Or do you have an idea?
Note: There are same third-party tools to dedicate a core to a specific actions but i don't wan't to use them without source code.
thanks @Kas Ob. and @Anders Melander