[comp.windows.ms] Setting application priorities?

oferf@shum.huji.ac.il (ofer faigon) (01/10/89)

I posted this question several weeks ago, and got no answer.  Maybe better
luck now...

Is there a way to set the priorities of background applications under MS -
Windows?

The situation I am talking about is of two programs: one is a fancy user
interface, and the other is an expert system (Prolog; Plain DOS, not a
Windows application).  After the user asks a question, she has to wait about
five minutes fo the answer (on a compaq 386/20!) - Windows gives high priority
to the displayed program even though the real crunching is done in the other
program.  When popping the expert system, by the way, 5 minutes shrink to
30 seconds.

Will calling sleep() in the foreground program yield control to the background
one?  Are the time slices fixed in length?

Thanks for any kind of information.  If I get anything interesting via mail,
I'll summarize on the net.

- Ofer.
Ofer Faigon                                         TEL: +972-2-669-834
  MAIL: P.O.B 7347, Jerusalem 91072, ISRAEL
  BITNET: oferf@HUJICS          CSNET & INTERNET: oferf@shum.huji.ac.il