Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-03-2007, 06:09 PM   #1 (permalink)
Section Moderator
 
gopi_vbboy's Avatar
 
Join Date: Mar 2007
Location: Hyderabad
Posts: 1,187
Exclamation DOS Application slows in XP


In Windows XP Prof.,when i'am running an DOS application(Borland c++ for eg) and shift to other windows aplications (by shifting to XP through Alt+Tab) i see the windows application runs very slowly.At the same time when i opened Windows task manger there is a constant 99% usage of CPU due to 'ntvdm.exe'.But CPU becomes to normal usage when i close the DOS Application.Why does this happen and is there any solution
gopi_vbboy is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-03-2007, 06:19 PM   #2 (permalink)
Human Spambot
 
shantanu's Avatar
 
Join Date: Dec 2006
Posts: 2,798
Default Re: DOS Application slows in XP

This is not a problem DUDE... the thing is that DOS is a Single user Disk operating system so it utilizes all the resources at once and hence leaving almost nothing for OTHERs.. and Specially C++ and other Dos based lang.
shantanu is offline  
Old 01-03-2007, 07:52 PM   #3 (permalink)
Section Moderator
 
gopi_vbboy's Avatar
 
Join Date: Mar 2007
Location: Hyderabad
Posts: 1,187
Default Re: DOS Application slows in XP

But the applications in WinME,win 98 behave normally and run comparably faster.I find the difference only in XP.Moreover when i close dos in XP application by close button End program dialog appears,although i can close through interface provided by the application.There is no End Program dlg in Win 9x/Me.

Last edited by gopi_vbboy; 01-03-2007 at 08:03 PM.
gopi_vbboy is offline  
Old 01-03-2007, 07:53 PM   #4 (permalink)
Security Exp
 
47shailesh's Avatar
 
Join Date: Apr 2006
Posts: 734
Default Re: DOS Application slows in XP

^ agree to @shantanu_webmaster
__________________
We Love Once, And When We do We do it Well
47shailesh is offline  
Old 01-03-2007, 08:17 PM   #5 (permalink)
Section Moderator
 
gopi_vbboy's Avatar
 
Join Date: Mar 2007
Location: Hyderabad
Posts: 1,187
Default Re: DOS Application slows in XP

can any one suggest clear reason for the difference
gopi_vbboy is offline  
Old 01-03-2007, 08:21 PM   #6 (permalink)
GUNNING DOWN TEAMS
 
wizrulz's Avatar
 
Join Date: Mar 2005
Location: MUMBAI
Posts: 1,724
Default Re: DOS Application slows in XP

DOS programs, especially old, 16-bit ones, need to run in
a DOS emulation window in OS's developed from the 32-bit,
Windows NT kernel model. The amount of overhead needed to
run the DOS emulator slows down the system. True, 32-bit
OS's include Windows NT, Windows 2000 and Windows XP. The
OS's derived from Windows 95, including 98 and ME, still
had some hybrid 16-bit/32-bit code, to afford some better
longevity to older DOS programs that were not going to be
ported over or re-written into pure 32-bit code.
__________________
The moment U stop learning ......u stop improving
wizrulz is offline  
Old 01-03-2007, 08:22 PM   #7 (permalink)
Human Spambot
 
shantanu's Avatar
 
Join Date: Dec 2006
Posts: 2,798
Default Re: DOS Application slows in XP

actually the win9x_me is Fat32 disk partitions and its not NT file system ,, while Windows 2000 and Xp is based on NT .. so the memory management is Typical.. thats why the Problem occurs
shantanu is offline  
Old 03-03-2007, 06:55 PM   #8 (permalink)
Section Moderator
 
gopi_vbboy's Avatar
 
Join Date: Mar 2007
Location: Hyderabad
Posts: 1,187
Default Re: DOS Application slows in XP

what is this 'ntvdm.exe'.It runs all time a doss app runs.

can any change to dos app properties like rom emulation,disable screen saver prevent this rapid use of cpu
gopi_vbboy is offline  
Old 03-03-2007, 10:52 PM   #9 (permalink)
GUNNING DOWN TEAMS
 
wizrulz's Avatar
 
Join Date: Mar 2005
Location: MUMBAI
Posts: 1,724
Default Re: DOS Application slows in XP

Quote:
Originally Posted by gopi_vbboy
what is this 'ntvdm.exe'.It runs all time a doss app runs.

can any change to dos app properties like rom emulation,disable screen saver prevent this rapid use of cpu
ntvdm.exe process is used when you run DOS or 16-Bit software on your windows pc. It will emulate the old DOS/16-bit os to allow older programs to run. If you are running DOS based (or 16-bit) programs on your computer, you should leave this process running.

@gopi...
can u post ur HIJACK File
__________________
The moment U stop learning ......u stop improving

Last edited by wizrulz; 03-03-2007 at 11:00 PM.
wizrulz is offline  
Old 04-03-2007, 05:38 PM   #10 (permalink)
Section Moderator
 
gopi_vbboy's Avatar
 
Join Date: Mar 2007
Location: Hyderabad
Posts: 1,187
Default Re: DOS Application slows in XP

what is HIJACK file
gopi_vbboy is offline  
Old 04-03-2007, 07:51 PM   #11 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default Re: DOS Application slows in XP

While whatever wizrulez wrote, he copied it from here

Now to the thread.

Dos applications run slow on NT machine because (as already stated) they are 16 bit applications and XP being a 32 bit OS runs them under a virtual machine (thats your NTVDM.exe).

This 16 bit emulation works like this : There are actually two process that creates this emulation : wowexec.exe and ntvdm.exe ..
Wowexec : Window16 on Window32 Exec : Converts the 16 bit api to 32 bit api
NTVdm : NT Virtual Dos machine : Emulates the Dos operating system and handles all the api calls.

This emulation and translation takes some time and hence you feel that the program is running slow.

Possible solution : Right click on the exe of the file and select properties.
Click on Comatability tab. Select Run this program under comatibilty for Windows 98 . Apply .. Try now ..

How I know all this ^^ ? I am trying to make some legacy applications run on NT architecture these days .. experience pays ..
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Closed Thread

Bookmarks

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 On


 
Latest Threads
- by Sujeet
- by ico
- by Tenida
- by gohan89
- by clinton

Advertisement




All times are GMT +5.5. The time now is 10:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2