|
|
Does it has anything to do with my original question, what will cause idle process happen (I/O?)?
regards,
George
|
|
|
|
|
if you understand that Idle means Do Nothing , yes, it has to do !!!
|
|
|
|
|
Has to to what?
My question is about what makes idle process happen, not what is idle process.
Any ideas?
regards,
George
|
|
|
|
|
are you doing it voluntarily ?
no one make the Idle Process Happen. it is there as long as Windows runs. if it uses 100% of proc. time, then it's because no other application consumes the CPU. if you see full CPU usage in the task manager, then remark that the idle process uses 0% of the processor...
that's all, there's nothing more to know about it.
|
|
|
|
|
Thanks toxcct,
I agree no one knows exactly how will cause idle process. But this thread is used to discuss in what general scenarios, system idle process will happen.
Like we have discussed,
1. System is not doing anything;
2. Single thread on multi CPU;
3. I/O (network, file, etc.).
It is appreciated if you could add some more.
regards,
George
|
|
|
|
|
George_George wrote: Are there any other cases which will cause system idle process happen
It "happens" as a result of the other processes not doing anything (i.e., it's what they are not). In other words, if you sum the CPU Usage of all processes, subtract from 100, the result would be the System Idle Process. Of course, I'm sure you already knew this.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks DavidCrow,
I agree.
regards,
George
|
|
|
|
|
|
Looks great, Hamid!
Very helpful. If there could be the a list of reasons which will cause idle process to have a non-neglectible percentage will be better.
regards,
George
|
|
|
|
|
You're welcome.
|
|
|
|
|
I am trying to develop a COM executable which implements the functionality in the IHWEventHandler interface . I was unsure if the IDE supports creating a co-class implementing the functions defined in IHWEventHandler.
In other words , I started with a new ATL project , which creates the boiler-plate code for housing the COM object , however I was unsure as to how to add a CoClass ( that implements the functionality of IHWEventHandler) from within the IDE.
I have tried Add->ATL Object --> Simple Object , however I am not sure where and how I can specify ( from the IDE) that the new class that I create will derive from
public IHWEventHandler
Any help is appreciated.
|
|
|
|
|
Hi all,
I have a web application on Visual Studio 2005, Windows Xp Pro, and I want my web application to handle requests for JPG images, how can I set the configuration for the application to have my application receive and serve requests for JPEG files?
Thank you
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Hi,
i'm using the windows media player as activeX object in a C#
application. I want to change the "Video border color"
(Windows Media Player->Menu Tools->Options->Performance->Advanced)
in my application. I cannot find the right options in the msdn library
to change the color from my application.
It's because i want to change the background color of the media player
if a video is changed during playback.
Can please someone tell me how to to this?
regards,
Lucas
|
|
|
|
|
If your question is about C# you must ask on the correct forum because here VC++ forum.
|
|
|
|
|
damn it! Sorry, i'll post it in the correct forum.
|
|
|
|
|
|
I'm implementing a model class that emulates a tree or hierarchy. A value is stored as a variant type structure, and you get access to a value with a key thats some unsigned int generated when you insert the value into the model. When you insert a value you specify a "parent" key.
So my question is: what's the best thing to use to implement this? Could I just use a std::map to store the key/values, and then a std::multimap<key,key> to store the parent/child relationships? Is there a simpler way?
Cheers
Jim
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
Does anyone know why on like 3 of 40 of the computers my company has, the controls placed on a dialog programmatically via MoveWindow are sized different than if they were just placed in the .RC file with the Resource Editor?
I have an image to show what I mean. On the right hand side I have what a normal machine looks like. on the left hand side is a screwed up machine( you'll notice all the top controls which are placed in the resource editor are much larger, where the bottom controls which are placed with MoveWindow function end up in the correct place)
http://www.john-moses.com/img/artviewer_bug.jpg[^]
So I have a dialog that has several controls on it, most of which don't need to be resized, only 2 of the controls on the dialog need to be resized. All the controls on the dialog that don't need to be resized I just place in the .RC file with the Resource Editor, and don't bother making member variables for. For the 2 controls that need to resizing, I'll place in the Resource Editor, but in the OnSize function I'll call MoveWindow on the 2 control's member functions to resize them.
This works just fine on like 98% of the computers are my company, but for like 3 people, for some reason this mix of Resource Editor/MoveWindow placed controls causes some kind of visual bug.
Any Ideas what could cause this?
I looked at the machines "Desktop Properties -> Display Properties -> Advanced", and all our fonts and sizes are the same.
We all do have different processors and video cards, nothing we can do about that.
We're all running Windows XP Pro
eh?
|
|
|
|
|
The coordinates in an RC file are expressed in dialog units. See here[^] for details on how to deal with them. Alternatively use place-holders in the .rc file and then use the GetWindowRect and MapWindowPoints APIs to get the coordinates in pixels (relative to the window's client area).
Steve
|
|
|
|
|
Oh thanks pal, you da man. I went for the placeholder like solution as it was quicker for me in this case, but next time I run into this (which I'm sure is soon), I'm going to follow the article.
|
|
|
|
|
I normally go for the place-holder solution myself.
Steve
|
|
|
|
|
Vs2005, XP Sp2. After reading lots of pages about MFC dlls and deployment and module state and memory and ..., here my question:
I have a plug-in dll, that is a "normal" Dll with MFC linked dynamically (and loaded by a third-party MFC app).
This dll uses:
- two resource dll, loaded at runtime (for changing language of dialogs) and that do not use MFC and do not contain code.
- two normal dll, delay loaded, with MFC linked dynamically.
- one win32 dll, delay loaded, with no MFC.
- one lib, statically linked, with MFC linked dynamically (actually this could as well be an MFC extension dll, I do not know the difference).
The whole makes extensive use of threads. Currently, this is compiled with the /MT option, as multithreaded (but for the lib, obviously). Should not everything be compiled as Multithreaded dll (/MD ?) Which Pre-processor definition are needed ? _DLL ? _AFXDLL ? _USRDLL ? What is the difference ?
When and in which projects should I use AFX_MODULE_STATE ?
Background: Debug version works perfectly, Release version is slow (some sync problems between threads probably). I came to suspect the project not to be build adequately, after observing that changing the thread priorities did not help. I also have one dialog that crashes when "DoModaled", supposely something goes wrong with state modules somewhere.
Thanks for your time, this bugs me.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
hi
I want to know How much data can be stored by CString Type varible.My actual problem is I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command
GetDlgItem(ID of edit box)->SetWindowText(CString Type Variable);
but is file is big all data is not shown
|
|
|
|
|
rajneshmalik wrote: I want to know How much data can be stored by CString Type varible.
Probably depends of your system memory since CString allocates the internal buffer on the heap, I suppose. but
rajneshmalik wrote: I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command
does the above really make sense?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|