TIP: Click on subject to list as thread! ANSI
echo: delphi
to: SRDJAN DAKIC
from: JANNIEK HUMMELINK
date: 1996-12-15 22:11:00
subject: Flushing disk-buffers

 SD>      curProcess := GetCurrentProcess();
 SD>      SetPriorityClass(curProcess, REALTIME_PRIORITY_CLASS);
 SD>      curThread := GetCurrentThread();
 SD>      SetThreadPriority(curThread, THREAD_PRIORITY_TIME_CRITICAL);
 SD>     Task-switching in W95 won't work, disk is quiet, mouse is dead,
 SD>     XT again!   :-)
Thank you for this tip. I needed the highest priority of my program during 
he
reading of data from an I/O card. (100 kH maximum reading).
One measuement will take about 20 seconds. In that time, the computer
retrieves about 1 million data points....
However, the mousepointer is not 'dead' during the 'XT-Mode' ;-) .
Also the clicks are stored in a buffer or so; as soon as the Priorities are 
set
to normal, the clicks become effective...
Do you have the same experience?
(SetPriorityClass(curProcess, NORMAL_PRIORITY_CLASS);
( SetThreadPriority(curThread, THREAD_PRIORITY_NORMAL);
Best regards,
Janniek Hummelink (Holland)
---
---------------
* Origin: Mijn computer is uitgeDOSt met Windows 95... (2:285/264.2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.