I’m not an expert, but have used a real time kernel for scientific research, using rtxi. My understanding is that the real time threads allows the computations to occur in a deterministic amount of time. This is necessary if you want to quickly respond to changes in personal membrane voltage with injections of current, and don’t want it to sometimes take longer to calculate how much current to inject.
Electric cars are bad for the environment since they require mineral mining and polute the city with micoplastics from tire dust. They are almost as bad as ICE cars.
Ebikes are the way to go.