列表 1. 伪代码示例

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
© . All rights reserved.