Re: Setting priority for exe built in DFf6.6
From: Stig Kildegård Andersen (stigkildegaardatmaildotdk_at_clear.all.after.dk)
Date: 05/27/04
- Next message: Richard Maine: "Re: OT: Re: Fortran 95/2003 Explained -- due in Sep '04"
- Previous message: Walter Spector: "Re: OT: Re: Fortran 95/2003 Explained -- due in Sep '04"
- In reply to: Antti K: "Re: Setting priority for exe built in DFf6.6"
- Next in thread: Antti K: "Re: Setting priority for exe built in DFf6.6"
- Reply: Antti K: "Re: Setting priority for exe built in DFf6.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 May 2004 16:34:34 +0200
> Anyway I got help by using sleepqq(). Just setting the priority in
> the starting of application does not seem to be enough (start/low ...).
> Somehow calculation needs to have frequently call sleepqq(0):s or
> call sleepqq(1):s to check is there other processes needing part
> it's cpu-use. I noticed when using these sleepqq:s total cpu-need
> was reduced from 29 s to 4 seconds; strange. Total time needed for
> the calculation was changed from 30 s to 35 s.
It is odd, I think, that lowering the priority of the process is not enough.
In my experience using the code I posted above is sufficient. I use it when
I run run parallel programs on a network of non-dedicated machines and I
have not yet received a single complaint about my programs not yielding the
CPU to other programs. Windows appears very efficient at excutig higher
priority threads before lower prioriy ones. Does your application use
multiple threads so that some might remain at high priority or do you use
library routines that can sit on the CPU while waiting for a response from
the network, or similar?
Kind Regards,
Stig Kildegård
- Next message: Richard Maine: "Re: OT: Re: Fortran 95/2003 Explained -- due in Sep '04"
- Previous message: Walter Spector: "Re: OT: Re: Fortran 95/2003 Explained -- due in Sep '04"
- In reply to: Antti K: "Re: Setting priority for exe built in DFf6.6"
- Next in thread: Antti K: "Re: Setting priority for exe built in DFf6.6"
- Reply: Antti K: "Re: Setting priority for exe built in DFf6.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|