MacOS Real Time

Does anyone have any information on using macOS as a real time operating system?

I was reading the kernel docs and you can set a thread’s priority to ‘real time’.

The kernel has preemption etc. Seems like it should be doable for mildly critical tasks.