Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > PRIORITY CHANGE?

Reply
Thread Tools Display Modes

PRIORITY CHANGE?

 
 
RetroMIDI
Guest
Posts: n/a

 
      11-13-2007
Is there a way under Vista so I can give a DOS window a very high
priority so it gets most of the machine cycles?

 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      11-13-2007
"RetroMIDI" <> wrote ...
> Is there a way under Vista so I can give a DOS window a very high
> priority so it gets most of the machine cycles?


Yes and No.

The "DOS window" is displayed by an instance of CMD.EXE. It is quite
straightforward to go into Task Manager, find CMD.EXE in the list of running
processes, and increase its priority. You can also star a new instance of
CMD.EXE (or any other program) by using the START command:

C:\>start /HIGH cmd

But! I'm pretty sure that this is not actually what you want to achieve. If
you set CMD.EXE to run at a high priority, so what? CMD itself is not a
CPU-intensive activity; quite the opposite. Mostly you open a Command Prompt
window because you want to run other programs from it. Maybe you want to
start other programs with a high priority?

If you start an app from a high priority CMD window, the spawned app does
not automatically inherit the high priority. So if you start Notepad (for
example) from a a high priority CMD window, that instance of Notepad will
run with Normal priority.

It's very likely that you want to give priority to some application, not to
the Command Prompt window itself. As above, you can do this is the usual
manner: just use Task Manager, or start the target application with a "start
/HIGH" command.

Note also that giving a process a High priority does *not* mean the process
will get most of the machine cycles. There is no guarantee that this will
happen. The priority means that the Windows Dispatcher will tend to schedule
threads for that process, in preference to threads for other processes at
lower priorities. If two processes have similar workload characteristics,
then the one running at a higher priority will probably tend to get more CPU
time, over a period. But priority does not directly allocate CPU time to a
process.

Finally (and just to be pedantic), it isn't a "DOS" window. DOS is an
obsolete, single tasking, 16-bit operating system. When you open a Command
Prompt window on Windows NT (including 2000, XP and Vista) you are running a
native, 32-bit process which calls does into the NT kernel; there's no DOS
involved. The Command Prompt does bear a superficial resemblance to the
command.com of old (and in fairness, even some Microsoft docs occasionally
refer to it erroneously as a "DOS window" ... sloppy tech writers).

Hope it helps,

--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
RetroMIDI
Guest
Posts: n/a

 
      11-13-2007
Thank you Andrew

This is very helpful but I am not there yet. I am wanting to get old
Borland Pascal running faster and also .exe apps created with BP.

I do not see them in Task Manager.

Is there a way to do it?



Andrew McLaren wrote:
> "RetroMIDI" <> wrote ...
> > Is there a way under Vista so I can give a DOS window a very high
> > priority so it gets most of the machine cycles?

>
> Yes and No.
>
> The "DOS window" is displayed by an instance of CMD.EXE. It is quite
> straightforward to go into Task Manager, find CMD.EXE in the list of running
> processes, and increase its priority. You can also star a new instance of
> CMD.EXE (or any other program) by using the START command:
>
> C:\>start /HIGH cmd
>
> But! I'm pretty sure that this is not actually what you want to achieve. If
> you set CMD.EXE to run at a high priority, so what? CMD itself is not a
> CPU-intensive activity; quite the opposite. Mostly you open a Command Prompt
> window because you want to run other programs from it. Maybe you want to
> start other programs with a high priority?
>
> If you start an app from a high priority CMD window, the spawned app does
> not automatically inherit the high priority. So if you start Notepad (for
> example) from a a high priority CMD window, that instance of Notepad will
> run with Normal priority.
>
> It's very likely that you want to give priority to some application, not to
> the Command Prompt window itself. As above, you can do this is the usual
> manner: just use Task Manager, or start the target application with a "start
> /HIGH" command.
>
> Note also that giving a process a High priority does *not* mean the process
> will get most of the machine cycles. There is no guarantee that this will
> happen. The priority means that the Windows Dispatcher will tend to schedule
> threads for that process, in preference to threads for other processes at
> lower priorities. If two processes have similar workload characteristics,
> then the one running at a higher priority will probably tend to get more CPU
> time, over a period. But priority does not directly allocate CPU time to a
> process.
>
> Finally (and just to be pedantic), it isn't a "DOS" window. DOS is an
> obsolete, single tasking, 16-bit operating system. When you open a Command
> Prompt window on Windows NT (including 2000, XP and Vista) you are running a
> native, 32-bit process which calls does into the NT kernel; there's no DOS
> involved. The Command Prompt does bear a superficial resemblance to the
> command.com of old (and in fairness, even some Microsoft docs occasionally
> refer to it erroneously as a "DOS window" ... sloppy tech writers).
>
> Hope it helps,
>
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Process Base Priority? Julian Windows Vista General Discussion 3 02-09-2008 05:34 PM
Indexer--how to change priority David Windows Vista General Discussion 9 08-22-2007 03:25 AM
Vista Priority theatretours Windows Vista Performance 2 08-17-2007 05:54 AM
Codec Priority Ash Windows Vista General Discussion 6 06-27-2007 01:02 AM
High priority bug formerprof Windows Vista General Discussion 7 12-31-2006 09:20 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59