This is almost an impossibility using a multi-tasking OS on two separate machines.
Multi-tasking is non-determanistic, which is to say, that there is no trivial way to predict exactly when any given application on a multi-tasking machine will receive a timeslice. There are simply too many system processes competing for those timeslices, and no way to predict when any of those system processes will become ready for scheduling, nor how much of their timeslice they will require to complete their task.
Even simple variations, like one machine being configured as a server and the other as a workstation will mean that both machines are probably running different suites of system applications--and probably, different thread quantums (timeslices).
You might be able to get this level of synchronicity using a single tasking (DOS-like) OS if the hardware was identical on both machines, but even that is unlikely.
The only realistic hope would be to use a real-time OS (like RTOS or QNX).
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon
| [reply] |
Do you have a high resolution clock under windows (for instance, does Time::HiRes run there?)
If you can get hires timer from that or from any other module, select a time not far into the future, and have both machines
start then.
Of course, you will have to ensure that both machines have synchronized clocks (and I don't know if even NTP can guarantee 1ms resolution in sync). | [reply] |
| [reply] |
I just wanna know who can visualy detect 1ms enough that it matters. That of course might have something to do with your setup, i just think any remote control is going to be instantaneous, and as others mentioned, the program is NOT going to run withen 1ms of the same speed on two computers.
| [reply] |
Thanks for the replies. I guess I'll just have to hope for the best. Certainly 1ms is tolerable, but because of the setup, they must be very close to each other timewise. Thanks again. | [reply] |