🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winapi
Article #1

Thread programming without sleep or WaitFor events

#1
From: sakarya -
Date: Wed, 29 Apr 2020 20:42
3 lines
1433 bytes
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.
Technical Details
Message-ID: <da33f05d-9780-4639-92ef-e40648b20eaa@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <da33f05d-9780-4639-92ef-e40648b20eaa@googlegroups.com>
Subject: Thread programming without sleep or WaitFor events
Date: Wed, 29 Apr 2020 20:42:49 +0000
From: sakarya - <sakaryakonakbim@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail
X-Received: by 2002:a05:6214:572:: with SMTP id cj18mr34005358qvb.209.1588192970653; Wed, 29 Apr 2020 13:42:50 -0700 (PDT)
X-Received: by 2002:a37:6587:: with SMTP id z129mr288136qkb.437.1588192970472; Wed, 29 Apr 2020 13:42:50 -0700 (PDT)
Newsgroups: borland.public.delphi.winapi
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=78.165.65.17; posting-account=sshNVgoAAACMT_hBCxnWa6hptsgi4aYC
Nntp-Posting-Host: 78.165.65.17
User-Agent: G2/1.0
Mime-Version: 1.0
Injection-Date: Wed, 29 Apr 2020 20:42:50 +0000
Content-Type: text/plain; charset="UTF-8"