1

Is there any way to achieve 100% CPU utilization just for few microseconds (say 900usec) and then return back to normal CPU utilization.

I have multiple processes (say X,Y,Z..)running on the same core. These processes perform some task in 500usec. Now I want to introduce this another process A which will bind on the same core and consume the whole CPU for some microseconds so that X is not able to complete its processing within 500usec timeframe.

Neo
  • 29
  • 2

1 Answers1

1

You can do a busy loop and set the nice value to the highest priority possible to increase the chances that your process will run. However you still cannot guarantee that your process will run instead of the other processes. This depends on the OS scheduler.

msam
  • 4,259
  • 3
  • 19
  • 32
  • I have set the SCHED_FIFO with 99 priority of my process. I exit from the busy loop on hitting 900usec. This is not helping – Neo Sep 18 '13 at 11:21