Re: Process Idle Time

From: Krishna Monian (KrishnaMonian_at_discussions.microsoft.com)
Date: 08/17/04


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.
>



Relevant Pages

  • Re: Dropping DTR to access command mode during ppp session
    ... Then at the root prompt, ... Type your AT commands, and then hit ~. ... >According to the modem manual, dropping DTR will put the modem into ... Here's what I worry about. ...
    (freebsd-questions)
  • [opensuse] Help installing openSUSE 10.2
    ... of the boot commands identified as runlevel 3. ... On boot screen use Other Options and enter 3 and press Enter to ... boot into runlevel 3, which is text mode with network. ... If computer gives you text mode login prompt enter user name, ...
    (SuSE)
  • RE: can someone help me with error code: 0x80070715? I cant update wi
    ... The specified resource type cannot be found in the image file. ... Try installing the latest Version of the Windows Update Agent by ... IF this is Vista you and you need to run the commands from a Command ... Prompt, locate 'cmd' from Start Search and then *right* click it, choose ...
    (microsoft.public.windowsupdate)
  • Re: [opensuse] Konsole problems
    ... Most likely there's a problem with your PS1 string. ... the prompt string that do not yield visible characters must be ... and subsequently send incorrect positioning commands. ... In my shell, it's a shell procedure ...
    (SuSE)
  • Re: Process Idle Time
    ... > file in turn invokes several executables. ... > reflected in the ProcessTimes of the command prompt. ... it depends on what sorts of commands are used in the BAT or CMD file. ... then those external commands will run in separate prcoesses and ...
    (microsoft.public.win32.programmer.kernel)