Minimization of Latency Using Multitask Scheduling in Industrial Autonomous Systems. (21st July 2022)