> Maybe copy/paste createThread into createThreadRealtime, add scheduling and > put into Nimble package.
That was my idea, yes. All you need to modify from the base proc `createThread` is a few `posix. pthread_attr_setinheritsched`, `posix. pthread_attr_setschedpolicy` etc. Another possibility, depending on what you actually want to do, is to change the niceness of the program : <https://nim-lang.org/docs/posix.html#nice%2Ccint>