ytsau
April 5th, 1999, 01:32 PM
Hi there,
In VC++ for win98/nt, I need to start a new procedure in response to the incoming trigger signal. What I do is to keep reading the interface port and as soon as the program detects the trigger signal, it starts the new procedure.
The problem is that I find that win98/nt keeps interrupting the program from checking incoming trigger signal. It is fine with a slow checking, but when the checking is time critical (the interval should be less than 10 microsecond), the interruption can be as long as 500 microsecond. I tried to increase the process prioritiy to REALTIME but it didn't help at all.
I guess this is because of Timer, Network, and mouse moving, etc. How do I disable all other threads, programs, interruption service and only leave my program and mouse enabled under win98/nt?
Any answer or hint are welcome. Thanks a lot in advance.
ytsau
In VC++ for win98/nt, I need to start a new procedure in response to the incoming trigger signal. What I do is to keep reading the interface port and as soon as the program detects the trigger signal, it starts the new procedure.
The problem is that I find that win98/nt keeps interrupting the program from checking incoming trigger signal. It is fine with a slow checking, but when the checking is time critical (the interval should be less than 10 microsecond), the interruption can be as long as 500 microsecond. I tried to increase the process prioritiy to REALTIME but it didn't help at all.
I guess this is because of Timer, Network, and mouse moving, etc. How do I disable all other threads, programs, interruption service and only leave my program and mouse enabled under win98/nt?
Any answer or hint are welcome. Thanks a lot in advance.
ytsau