LJ Archive

Listing 1. Pseudo-Code Example

begin
   lock process into memory (This will prevent it
         being out swapped to disk)
   set the process scheduling policy to real-time,
         high priority
     do n loops
        read start time
        sleep for 100 milliseconds
        read end time
        calculate deviation and store result
     end loop
   output average and worst-case deviations
end
LJ Archive