🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi.win32
Article #39

Re: High Priority Code Segment

#39
From: DJSox
Date: Thu, 07 Aug 2008 04:10
35 lines
2422 bytes
If your machine has is multiprocessor then there is nothing wrong with doing 
your timing in a separate thread with a very high, even real-time priority. 
If you have only a single processor, then you will have issues with starving 
other threads and apps. But in any case you can adjust the priority of the 
thread to a higher value.

Dan

"Charles Hacker" <reply.to@borland.newsgroups> wrote in message 
news:489A7184.365DE8E@borland.newsgroups...
> Roger Lascelles wrote:
>>
>> I recommend you don't  do this. A small microcontroller on a USB or COM 
>> port
>> will do the job perfectly and will work on any PC.
>
> I realise this, and for a dedicated system I would certainly build a
> seperate controller.
>
> However, this is an "Educational Task", to get students to develop a
> "Real-Life" task to control an external device.
> (I am a University lecturer, at Griffith University, Qld Australia).
>
> The control will not be perfect, and will not necessarily be the way to
> go, but it is a task that is possible for students to do.
>
> But in anycase, I was just wondering if there is any way to 'improve'
> the response (though it may never be perfect).
>
> I noticed the 'SetPriorityClass' command, and it has 'Real_Time' Class.
> So anyone know if that is a good way to go?
> Any better (or other) suggestions?
>
> -- 
> Charles Hacker 
Technical Details
Message-ID: <489a75b3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <489A25D4.BE924FDC@borland.newsgroups> <489a34be@newsgroups.borland.com> <489A7184.365DE8E@borland.newsgroups>

Show Full Headers
Complete Article Headers
X-Google-Thread: 14438e,b1323c1bf7c9f0fc
X-Google-Attributes: gid14438e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "DJSox" <thesoxfamily@verizon.net>
Newsgroups: borland.public.delphi.nativeapi.win32
References: <489A25D4.BE924FDC@borland.newsgroups> <489a34be@newsgroups.borland.com> <489A7184.365DE8E@borland.newsgroups>
Subject: Re: High Priority Code Segment
Date: Wed, 6 Aug 2008 21:10:29 -0700
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 71.165.39.82
Message-ID: <489a75b3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1218082227 71.165.39.82 (6 Aug 2008 21:10:27 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 2268