Re: Process Idle Time
From: Chuck Chopp (ChuckChopp_at_rtfmcsi.com)
Date: 08/17/04
- Next message: Allen: "Re: Disallow killing a service"
- Previous message: Krishna Monian: "Re: Process Idle Time"
- In reply to: Krishna Monian: "Re: Process Idle Time"
- Next in thread: Krishna Monian: "Re: Process Idle Time"
- Reply: Krishna Monian: "Re: Process Idle Time"
- Reply: Krishna Monian: "Re: Process Idle Time"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Aug 2004 12:20:58 -0400
Krishna Monian wrote:
> What happens if a batch file is invoked from the command prompt? The batch
> file in turn invokes several executables. From my understanding this won't be
> reflected in the ProcessTimes of the command prompt. Am I right?
>
> Is there any way to work around this?
Again, it depends on what sorts of commands are used in the BAT or CMD file.
If they are commands that are internal, as in they are built into CMD.EXE,
then then that instance of CMD.EXE will utilize some CPU time as it executes
those internal commands. A small amount of CPU time will be utilized, too,
for the actual parsing of the BAT or CMD file itself. However, if there are
any external commands being executed as a result of processing the BAT or
CMD file, then those external commands will run in separate prcoesses and
will not result in CMD.EXE utilizing any significant amount of CPU time.
I don't understand what sort of work around you are asking for. This is
simply how CMD.EXE functions [and COMMAND.COM, for that matter]. While an
external console mode program is executing, CMD.EXE will appear idle as it
is in a wait state. The subprocess that it created to execute the external
command will then be busy or idle on its own depending on what it is doing
and how the user is interacting with it.
-- Chuck Chopp ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com RTFM Consulting Services Inc. 864 801 2795 voice & voicemail 103 Autumn Hill Road 864 801 2774 fax Greer, SC 29651 Do not send me unsolicited commercial email.
- Next message: Allen: "Re: Disallow killing a service"
- Previous message: Krishna Monian: "Re: Process Idle Time"
- In reply to: Krishna Monian: "Re: Process Idle Time"
- Next in thread: Krishna Monian: "Re: Process Idle Time"
- Reply: Krishna Monian: "Re: Process Idle Time"
- Reply: Krishna Monian: "Re: Process Idle Time"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|