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)
|