three imitate algorithm about OS