This is a small hack that shows how to set real-time priority for a thread in Common Lisp using sbcl by calling pthread_setschedparam(3). The code should be easily adaptable for other Common Lisp implementations.
The effect of doing so can be observed by calling ps(1) and chrt(1).
The cffi based code needed is in the file setschedparam.lisp. The file main.lisp serves as a demo.