TCC idling

Jun 7, 2008
121
0
Hi

Just noticed something

Running
TCC 13.01.31 Windows XP [Version 5.1.2600]

I have 6 sessions of TCC open, PC is not doing anything and in Process Explorer, all 6 sessions are consuming anything between 0.39% to 3.10% of CPU time.
Nothing substantial, but not zero.
CMD.EXE seems to be 0%.

Is TCC "doing" anything, by default, when idle?

Cheers

Stephen Howe
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
> I have 6 sessions of TCC open, PC is not doing anything and in Process
> Explorer, all 6 sessions are consuming anything between 0.39% to
> 3.10% of CPU time.
> Nothing substantial, but not zero.
> CMD.EXE seems to be 0%.
>
> Is TCC "doing" anything, by default, when idle?

If you're running TCC stand-alone (i.e., not in a Take Command tab window),
all it's doing is sitting inside a Windows WaitForSingleObject API call
waiting for you to press a key. There may also be some background threads
running depending on what else you've been doing.

If you're running TCC in a tab window, there's an enormous amount of stuff
going on in the background, mostly to keep the tab windows updated.
 
Jun 7, 2008
121
0
If you're running TCC stand-alone (i.e., not in a Take Command tab window)

I am. I notice even when I start TCC and then do nothing, CPU time is taken up. In contrast CMD.EXE takes nothing. A single "DIR" on a big directory in CMD, and I see activity, and then nothing. At this point I got interested.
Using DEPENDS.EXE, I can see that CMD.EXE makes a call to WaitForSingleObject.

If I use Process Explorer, bring up properties for CMD.EXE & TCC.EXE,
switch to Thread Tab, I see

2 threads for CMD.EXE in
CMD.EXE+0x5046 State: Wait:WrLpcReply
NTDLL.DLL!RtlConvertUiListToAPiList+0x295 State: Wait:Suspended
but the interesting thing is the Context Switches is not increasing, it is a fixed number

I see

3 threads for TCC.EXE in
TakeCmd.DLL!AllocDup+0x1a0 State: Wait:DelayExecution or Ready
TCC.EXE+0x3c1d State: Wait:UserRequest or Ready
TCC.EXE+0x2ec0 State: Wait:WrUserRequest
but here the Context Switches is constantly increasing

I am not sure what all this means.
I have drawn a blank searching on WaitForSingleObject and CPU cycles

Cheers

Stephen Howe
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
> 3 threads for TCC.EXE in
> TakeCmd.DLL!AllocDup+0x1a0 State: Wait:DelayExecution or Ready
> TCC.EXE+0x3c1d State: Wait:UserRequest or
Ready

> TCC.EXE+0x2ec0 State: Wait:WrUserRequest
> but here the Context Switches is constantly increasing

WAD. TCC doesn't do an infinite wait in WaitForSingleObject. It waits 10
ms, then checks for a ^Break and gives up the rest of its time slice, and
loops back to the WaitForSingleObject. Even if you're running an 8088 at
4Mhz, you're never going to be able to detect any overhead here.

Unlike CMD, TCC is not actually a console app. It is a hybrid console/GUI
app, and has its own message loop (CMD does not). I suspect you either have
something in your system blasting out a stream of messages to the TCC
sessions (which TCC has to process), or you have a third-party app that is
injecting code into the TCC sessions. What does Process Explorer show for
the dll's in a TCC session?
 
Similar threads
Thread starter Title Forum Replies Date
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
M Strange error messages from TCC in FTP copy Support 7
Kachupp Documentation tcc-rt versions Support 1
V Comments from a first-time user (TCC 26) Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.28 Support 0
C TCC 26 BATCOMP BTM problems? Support 5
E TCC/CMD difference Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT Public Beta RC2 Support 0

Similar threads