For Programmers: Free Programming Magazines  


Home > Archive > Fortran > September 2006 > number crunching under Windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author number crunching under Windows
tholen@antispam.ham

2006-09-23, 7:00 pm

A number crunching application built using CVF 6.6C can cause Windows
to behave rather sluggishly. The situation can be remedied by using
CAD to bring up the Task Manager and manually change the priority of
the number crunching program to "Below Normal". Presumably this step
can be avoided by having the program make a call to a Windows API to
set its own priority. Where can I find the documentation for such an
API call? Doesn't Microsoft have all of its Windows API documentation
on a web page somewhere?

Gary Scott

2006-09-23, 7:00 pm

tholen@antispam.ham wrote:
> A number crunching application built using CVF 6.6C can cause Windows
> to behave rather sluggishly. The situation can be remedied by using
> CAD to bring up the Task Manager and manually change the priority of
> the number crunching program to "Below Normal". Presumably this step
> can be avoided by having the program make a call to a Windows API to
> set its own priority. Where can I find the documentation for such an
> API call? Doesn't Microsoft have all of its Windows API documentation
> on a web page somewhere?
>

The Windows API documentation is online in the CVF help menu. Look for
"SDK" in the title. Look for SetPriorityClass

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

Why are there two? God only knows.


If you want to do the impossible, don't hire an expert because he knows
it can't be done.

-- Henry Ford
unix_guru

2006-09-23, 10:00 pm

On Sat, 23 Sep 2006 20:50:28 GMT, Gary Scott
<garylscott@sbcglobal.net> wrote:

>tholen@antispam.ham wrote:
>The Windows API documentation is online in the CVF help menu. Look for
>"SDK" in the title. Look for SetPriorityClass


i write batch files to do everything like this instead of embedding in
program. i lower the priority of everything else as windows as lots
of crap running and run apps like NEC in HIGH. so explorer etc get
starved but who cares? look for program call prv. do you really want
your program interrupted because winDoZe decides it is time to clean
the desktop? PFFffff

-----------------------------------
For the spambots
KJMWEB@fcc.gov
Michael.Copps@fcc.gov
Jonathan.Adelstein@fcc.gov
dtaylortateweb@fcc.gov
Robert.McDowell@fcc.gov
vice_president@whitehouse.gov
president@whitehouse.gov

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Gary Scott

2006-09-23, 10:00 pm

unix_guru wrote:

> On Sat, 23 Sep 2006 20:50:28 GMT, Gary Scott
> <garylscott@sbcglobal.net> wrote:
>
>
>
>
> i write batch files to do everything like this instead of embedding in
> program. i lower the priority of everything else as windows as lots
> of crap running and run apps like NEC in HIGH. so explorer etc get
> starved but who cares? look for program call prv. do you really want
> your program interrupted because winDoZe decides it is time to clean
> the desktop? PFFffff


I only write full fledged GUI applications because that's what users
demand or they won't use them. It matters little whether I isolate a
small number features to command line equivalents to APIs.


>
> -----------------------------------
> For the spambots
> KJMWEB@fcc.gov
> Michael.Copps@fcc.gov
> Jonathan.Adelstein@fcc.gov
> dtaylortateweb@fcc.gov
> Robert.McDowell@fcc.gov
> vice_president@whitehouse.gov
> president@whitehouse.gov
>
> --
> Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
> ------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access



--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

Why are there two? God only knows.


If you want to do the impossible, don't hire an expert because he knows
it can't be done.

-- Henry Ford
dpb

2006-09-24, 7:02 pm


tholen@antispam.ham wrote:
> A number crunching application built using CVF 6.6C can cause Windows
> to behave rather sluggishly. The situation can be remedied by using
> CAD to bring up the Task Manager and manually change the priority of
> the number crunching program to "Below Normal". Presumably this step
> can be avoided by having the program make a call to a Windows API to
> set its own priority. Where can I find the documentation for such an
> API call? Doesn't Microsoft have all of its Windows API documentation
> on a web page somewhere?


As Gary noted, the SDK API doc's at the time of CVF release are w/ the
CVF documentation.

Current platform-specific documentation is available following links
from www.msdn.com

For XP, this leads to

http://msdn.microsoft.com/library/d..._start_page.asp

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com