An introduction to the situation:-
It is pathetic to hear that Turbo C++ are still used in schools for teaching C,C++. It is a disturbing fact that this turbo c++ Version 3.0/3.1 that is commonly used is older than the students who are using it!!
Since Turbo c++ is a DOS based compiler when you are running it on windows xp,vista or 7 which is 32bit (in 64 bit they removed support for 16bit applications) will run ntvdm.exe which is nothing but an emulator for running 16 bit application and here it is our old school turbo c++. This ntvdm.exe spikes up the cpu usage with its poor emulation and uses nearly 100% cpu on single core processors and 50% on dual core processors leaving nothing for multitasking.
Benefits of the method shown below
1) CPU usage will be very low and you can multitask.
2) 64bit windows dropped the support for 16 bit applications and you can use DosBox and follow the method below and use turbo c++ and other 16 bit applications and games on your 64bit xp,vista,7.
3)This is not just for turboC++ and follow the below method for any 16bit applications and games.
So here is the solution..
1) Download and Install Latest version of Dosbox from http://www.dosbox.com/
2) Edit Configuration file of DosBox (it is there in the start menu)
3) To auto mount your turboc++ that is to make turboc++ run every time you click on Dosbox shortcut on the desktop
Add as shown in the screenshot in the config file.
Where d:\Turboc\ is the directory where Turbo c++ is installed.
4. For Reducing the cpu usage (optimum usage), we emulate a cpu with 6mhz clock speed which is sufficient for turbo c++
for that do as shown in the screen shot below.
5. Also do the following settings in dosbox config file for optimum usage like working of aero in windows 7,vista. Better windows size, rendering etc.