lockd: implemented a priority queue for the serial interface