Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Windows Under The Hood issue
I (or actually we) have a tricky performance issue with our simulator that was annoying a couple of years ago but has now become a real problem. The application does not hang, but it produces a ton of error printouts that does not exist in real life i.e. when the application runs in the target (not in PC).
The simulator consist of a couple of win32 console applications, written in C++. When the console applications starts up, they instantly creates a second window that have the GUI. We usually start at least four (4) different applications that communicates (IPC) with each other through a memory mapped file, where we use system calls like PulsEvent, Mutex and Semaphores. Furthermore - we are using MetaWINDOW from Metagraphics Software Corporation, mainly because its fast and can run in both Windows and on the target system with a RTOS. But once again, the performance problem is in the simulator i.e. PC with Windows.
The PC (Wintel) that runs our simulator must be connected to the Intra-net/Internet in order to work and perform properly. And here comes the funny part: It even performs better if we start up IE/FireFox and have a home page that contains... well we don't know actually, like www.times.com. So our application when running as a simulator in Wintel is addicted to be connected to Internet, have a browser with some specific home pages !!
We think that since we use some low level win-api commands (Mutex/Semaphores) in our applications and those are surely used by the browsers and in extent the network drivers, Windows itself boosts up the priority of some ActiveX component that is related to the browser functionality. And Voila !! our application is enjoying a free lunch and works fast and smooth! Is this strange/odd? I don't know, it's crazy but it's a fact.
So my question is, does anybody recognize this phenomena and is there any solution to get rid of the dependency of the connection to Intra-net/Internet + browser + some home page? I am grateful of any suggestions what to to, what so ever!
Thanks in advance
0 · ·