Optimal Policy In Operating System