Question about limitation on Flow Service

If, for instance, we have a flow service with an infinite LOOP, the service run without stopping and take all the CPU of the system.
So others flow services are penalized by this behaviour.
So in my mind, I thought we can (programmatically or by settings) limit the CPU for each service.

Have you an idea for that ?

Thanks advance.

I think this should be adressed at the level of the JVM or OS.