In general, the JVM does not carry out any planning. This is the task of the OS. For example, Linux has custom scheduling options, and if you want to add a new scheduling strategy, you can change the kernel.
However, depending on why you want to do this, you can solve the problem in another way, for example, using the custom Executor shell or the Reactor style structure, or effectively disable scheduling for the processor and do all the work in Java yourself. (Not a trivial topic, rarely very useful)
source
share