Re: Process Idle Time
From: Krishna Monian (KrishnaMonian_at_discussions.microsoft.com)
Date: 08/17/04
- Next message: Nicolas Cadilhac: "Re: SHFileOperation and FOF_MULTIDESTFILES"
- Previous message: Jonathan Morrison [MSFT]: "Re: Wrapper functions for GetProcAddress"
- In reply to: Chuck Chopp: "Re: Process Idle Time"
- Next in thread: Chuck Chopp: "Re: Process Idle Time"
- Reply: Chuck Chopp: "Re: Process Idle Time"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Aug 2004 10:49:04 -0700
I basically want to know if the prompt is busy in any way. This should also
include the case if a child process started from the prompt is busy too. My
guess is that this cannot be done since the parent-child relationship is not
very well defined under Windows.
Thanks
"Chuck Chopp" wrote:
> 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: Nicolas Cadilhac: "Re: SHFileOperation and FOF_MULTIDESTFILES"
- Previous message: Jonathan Morrison [MSFT]: "Re: Wrapper functions for GetProcAddress"
- In reply to: Chuck Chopp: "Re: Process Idle Time"
- Next in thread: Chuck Chopp: "Re: Process Idle Time"
- Reply: Chuck Chopp: "Re: Process Idle Time"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|