There are two processes (P-A and P-B) running on the same CPU core. Process B is multithreaded. I want process A to be preempted after every 2 microseconds by a thread of Process B.
Is it possible to write a timer interrupt (or anything else) to preempt process A after a fixed interval of time (in microseconds)?