07-10-2009 09:22 AM
Not sure whether this is the right place for this kind of question. If it isn't, please direct me in the right way.
Anyhow, I am making a test application which will never run actual device. This application does heavy computing and takes about 2 hours to complete. During runtime I notice that the simulator ony uses one core of my PC CPU.
Does anyone know any switch I could enable/use to make the simulator use more of my system resources (primarily CPU power).
Solved! Go to Solution.
07-10-2009 09:27 AM
First obvious question is: why do you develop application for BlackBerry and run it inside a simulator if you are never going to use it on device? Why don't you use plain Java for PC?
Amd one more question: Is your application multi-thread? I don't know about simulator implementation but it is clear that simulator will not be able to execute single-thread application using several cores.
07-13-2009 03:42 AM
First question answer: Because I want to use BB's API, and trigger something on message events, for instance. Making a test application which will, of course, be heavily lightened before running at the device itself.
Second question answer: Good point. Yes, the application is multithreaded.
Thx for your interest.
07-13-2009 05:40 AM
You'd expect the OS to take care of a lot of that but I guess I would suggest getting out of the simulator and indeed
I've using conditional compilation for preliminary and stress testing on j2se. It isn't hard to stub out the rim classes
and hit your code hard- this is important in an multi-threaded environment to check for various timing problems etc and
being able to test a lot of iterations quickly is important. If you encounter a bug later, with stress tests in simulator,
it should be a lot easier to isolate since you have some idea of what works or have a j2se test jig available.
Heavy computing suggests you have something you can test on j2se.