Application-specific, dynamic reservation of 5G compute and network resources by using reinforcement learning