It's easy to do realtime control on a linux box, simply run your program as root and disable interrupts. Every time you're 'safe' (stopped, or very low speeds) you can safely enable/disable interrupts to make sure all your hardware gets serviced and to poll for UI input. I've controlled a 3D mill/plasma cutter like this at very high speeds.