Operating System Concepts For Gate Preparation