Solved

Connectix/Virtual PC DOS aplpication takes 100% CPU

Posted on 2006-10-27
9
495 Views
Last Modified: 2013-11-15
Does anyone know how to throttle DOS applications in a virtual environment so that they let go of the CPU when idle?

I have tried the idle.com install but it doesn't seem to do the trick.  After installing it, I have to manually run the idle.com command then the DOS application gives up the CPU but I thought it was supposed to do it on its own...

Any tricks would be appreciated!

Thanks!
0
Comment
Question by:SYSadmin22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
9 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 17824102
DOS apps are not designed to be multi-threaded, meaning, they will run all the time, at full CPU utilization.

However, if you create a PIF for the DOS app, then you will be able to fine tune the application to act according to certain memory and utilization models.  When you do, you get a multi-tab layout with General, Program, Font, Memory, Screen, Misc and Compatibility tabs.

In the compatibility tab, choose, "Run this program in compatibility mode" and choose NT or better still, 2000.  This will force the OS to time slice the application and not allow it 100% CPU utilization.

Also explore the other tabs on that interface, including memory and other tab settings, and you will find that you can limit it as best you can.  Anything more than this cannot be done, so work on that.
0
 

Author Comment

by:SYSadmin22
ID: 17825596
Thanks for the info!

I have never heard of a PIF...  I will research that and see if I can figure it out.

Can you explain or provide some info on that?

Thanks!
0
 

Author Comment

by:SYSadmin22
ID: 17825624
OK, that was easy to find.

I don't know if this is an option for me because the DOS application that I'm referring to is actually a true 16 bit DOS app that is running in it's own virtual machine in the old version of Mcrosoft Virtual PC, Connectix.

I think the PIF will only work if the dos app is running inside a 32 bit application.

Am I off the mark here?

Thanks
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 44

Expert Comment

by:scrathcyboy
ID: 17827393
Yes you are off the mark.  A PIF is a WINDOWS ENVIRONMENT specification to run ANY DOS app from, and it includes 16 bit, since there is no such thing as a DOS 32 bit app -- dos does not do 32 bit.

The important thing about a PIF is that you can change ALL the windows environment variables to match what the DOS app need to use to run correctly.  You will find that this is EXACTLY the way you need to go to get your DOS app to work under the XP environment.
0
 

Author Comment

by:SYSadmin22
ID: 17843174
I'm not sure who's confused here but I'll try to explain the situation here.

First, I'm not sure if you know what Virtual PC is but it's like VMWare and this dos app is running inside this image.  There is no windows XP, 2000 or NT4 inside this image just a DOS app so I can't exactly log into it and click an executable or shortcut to customize the application.  So there is no windows environment to adjust unless you can tell me how to modify virtual PC...

Secondly, I have resolved this myself by Pausing Virtual PC when not in use which in essence sends the commands to give up the CPU.  I'm happy with this since I'm getting rid of the DOS app in a few months.

Thanks for the input.
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 17847102
"So there is no windows environment to adjust unless you can tell me how to modify virtual PC"

Wrong, the environment is customized at the time you run the application, you just have to provide the right variables, which is what I have been telling you all  along.  I am not confused here, perhaps you see a big difference between running a DOS app under a windows shell, vs. running the DOS app in a VM environment.  In practicality there is NO difference at all, all you must do is customize the environment.  Since you seen to have solved the situation along the lines I said, I suggest you close the question by awarding to the most accurate answer.  Good luck
0
 

Author Comment

by:SYSadmin22
ID: 17847196
OK, I'm confused...  Please provide me with the instructions on how to accomplish what I need to do and I'll gladly award you the points!

Thanks again!
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18032881
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Invest in your employees with these five simple steps to improve employee engagement and retention.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question