This document introduces a dynamic task scheduling algorithm for multicore engine control units (ECUs) in automotive systems, aiming to optimize CPU utilization and meet real-time deadlines. It contrasts with static priority scheduling methods outlined by AUTOSAR, demonstrating improvements in performance metrics such as average waiting time and preemption overhead. The proposed scheduler employs a minimum slack first strategy to allocate tasks dynamically, ensuring that all tasks meet their deadlines while efficiently utilizing computational resources.