In my .NET application I have to replay a series of sensor events. So I created a thread that fires these events (usually about every 1 - 4 millisecond). I implemented a loo
Windows is not a real time operating system.
The scheduler may wait longer than the requested sleep duration to execute a thread, especially if another thread is still busy.
Try use the Multimedia Timer if you want more reliability. There is a .NET wrapper here.