Advertisement
Guest User

Untitled

a guest
Aug 4th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. (defun most-urgent-process ()
  2. (let ((proc-1 *default-process*)
  3. (max -1)
  4. (value-1 true))
  5. (dolist (process *processes*)
  6. (let ((priority (process-priority process)))
  7. (if (> prority max)
  8. (let ((value (or (not (process-wait process)
  9. (funcall (process-wait process))))))
  10. (when value
  11. (setq proc1 process
  12. max priority
  13. value-1 value))))))
  14. (values proc-1 value-1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement