Jump to content

turkverisoft

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. turkverisoft

    Thread programming without sleep or WaitFor events

    Thank you for your answer, Do you have any sample code that how to use RIO Extensins? @Remy Lebeau
  2. turkverisoft

    Thread programming without sleep or WaitFor events

    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
  3. We need very high performance to process UDP Socket messages. If we use sleep(0) or sleep(1) or WaitForSingleObject (Event based) it works but sometime we get 15-16ms latency.If we don't use these it works perfectly but in this case the blocks other operations.Is there any way to use Threads without any latency in Delphi? Maybe by dedicating one of core to this thread.
×