Real-time decentralized traffic management using a parallel algorithm