Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: system idle process Pin
cp987614-Jan-08 23:44
cp987614-Jan-08 23:44 
GeneralRe: system idle process Pin
Maxwell Chen14-Jan-08 19:16
Maxwell Chen14-Jan-08 19:16 
GeneralRe: system idle process Pin
George_George14-Jan-08 19:56
George_George14-Jan-08 19:56 
GeneralRe: system idle process [modified] Pin
Luc Pattyn14-Jan-08 21:17
sitebuilderLuc Pattyn14-Jan-08 21:17 
GeneralRe: system idle process Pin
George_George14-Jan-08 21:37
George_George14-Jan-08 21:37 
GeneralRe: system idle process Pin
Luc Pattyn14-Jan-08 21:53
sitebuilderLuc Pattyn14-Jan-08 21:53 
GeneralRe: system idle process Pin
George_George14-Jan-08 22:48
George_George14-Jan-08 22:48 
GeneralRe: system idle process Pin
Luc Pattyn15-Jan-08 0:32
sitebuilderLuc Pattyn15-Jan-08 0:32 
George_George wrote:
Do you think process waiting for I/O will cause system in idle


As I said, a thread that is not ready (as in Thread.Sleep, ManualResetEvent.WaitOne, and
many many more), will cause the next-priority ready thread to run. If none are ready besides
the idle thread(s), then the system becomes idle until a thread becomes ready again
(because an I/O operation completed, or a delay expired).

The key word is "waiting": if a thread performs some I/O it does not necessarily wait,
e.g. most files accesses are buffered, so adding a char to a file stream is very likely to
be a simple memory operation most of the time; once the buffer is full, or some threshold
is exceeded, the stream may pass its buffer to the next level, say a software cache,
or the disk driver itself; if slow/physical devices get involved, a real wait is probable.


I am getting the impression you have some overall problem and are asking questions at
too low a level; it may be more useful if you explain your app, and the observations that
cause you to wonder about all this (unless it is just out of curiosity of course).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: system idle process Pin
George_George15-Jan-08 1:59
George_George15-Jan-08 1:59 
GeneralRe: system idle process Pin
Luc Pattyn15-Jan-08 2:54
sitebuilderLuc Pattyn15-Jan-08 2:54 
GeneralRe: system idle process Pin
toxcct14-Jan-08 21:23
toxcct14-Jan-08 21:23 
GeneralRe: system idle process Pin
George_George14-Jan-08 21:38
George_George14-Jan-08 21:38 
GeneralRe: system idle process Pin
toxcct14-Jan-08 21:42
toxcct14-Jan-08 21:42 
GeneralRe: system idle process Pin
George_George14-Jan-08 22:34
George_George14-Jan-08 22:34 
GeneralRe: system idle process Pin
toxcct14-Jan-08 23:08
toxcct14-Jan-08 23:08 
GeneralRe: system idle process Pin
George_George14-Jan-08 23:22
George_George14-Jan-08 23:22 
GeneralRe: system idle process Pin
David Crow15-Jan-08 3:01
David Crow15-Jan-08 3:01 
GeneralRe: system idle process Pin
George_George15-Jan-08 3:10
George_George15-Jan-08 3:10 
GeneralRe: system idle process Pin
Hamid_RT15-Jan-08 4:14
Hamid_RT15-Jan-08 4:14 
GeneralRe: system idle process Pin
George_George15-Jan-08 4:28
George_George15-Jan-08 4:28 
GeneralRe: system idle process Pin
Hamid_RT15-Jan-08 4:56
Hamid_RT15-Jan-08 4:56 
GeneralCOM development with Visual Studio 2005 Pin
act_x14-Jan-08 14:12
act_x14-Jan-08 14:12 
GeneralApplication mappings in IIS Pin
Mohammad A Gdeisat14-Jan-08 11:52
Mohammad A Gdeisat14-Jan-08 11:52 
Questionchange video border color when using WMP in C#? Pin
codefreaklcs14-Jan-08 11:15
codefreaklcs14-Jan-08 11:15 
GeneralRe: change video border color when using WMP in C#? Pin
Hamid_RT14-Jan-08 18:06
Hamid_RT14-Jan-08 18:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.