Hi, A while back in some discussion here the idea was mentioned to automatically give "foreground" applications more priority.
Someone just brought up an old paper, which -- if I'm reading the abstract right -- seems to be about doing precisely that: http://www.usenix.org/publications/library/proceedings/cinci93/full_papers/evans.txt -antrik-
