Real-Time Control of Production Systems with Constrained Time Windows