I would like to create an OS scheduler implementation in Java (just for demonstration). I understand I can start threads, but after starting them I do not have control over their scheduling, and I would like to play with different scheduling algorithms.
I am willing to dig into the SDK to do some hacks, but is there an easier way?
Thanks in advance.
Just for the [duplicate] flaggers: yes, I found relevant links, but they do not answer how to do scheduling MANUALLY, i.e. from your own code. That seems to need JNI calls and use OS-specific thread management. There is no mention of this elsewhere, or please show me that link where this is discussed.