lisp123456

Untitled

Aug 4th, 2021
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2. (defun most-urgent-process ()
  3. (let ((proc1 *default-proc*) (max -1) (val1 t))
  4. (dolist (p *procs*) (let ((pri (proc-pri
  5. (if (> pri max) (let ((val (or
  6. p)))
  7. (not (proc-wait p)) (funcall (proc-wait p)))))
  8. (when val
  9. (setq proc1 p
  10. max pri
  11. val1 val)))))) (values proc1 val1)))
Advertisement
Add Comment
Please, Sign In to add comment