Cycle of Message loop
-
Hi, I wonder how much is the cycle of message loop. I looked through some articles in MSDN, but no articles gave an explain about how much time one cycle message loop needs. Is the message loop depends on hardware, or OS decide it? and if I have a timer event in my program, then is the message loop has higher priority?
-
Hi, I wonder how much is the cycle of message loop. I looked through some articles in MSDN, but no articles gave an explain about how much time one cycle message loop needs. Is the message loop depends on hardware, or OS decide it? and if I have a timer event in my program, then is the message loop has higher priority?
econy wrote:
Is the message loop depends on hardware, or OS decide it?
Both I'd immagine. Seems like the answer would be non-deterministic, I'm no expert but Windows being a non real-time OS could and will preempt your program and your message pump for some undetermined time. Maybe you could get some info using this[^]
econy wrote:
timer event in my program, then is the message loop has higher priority?
-
Hi, I wonder how much is the cycle of message loop. I looked through some articles in MSDN, but no articles gave an explain about how much time one cycle message loop needs. Is the message loop depends on hardware, or OS decide it? and if I have a timer event in my program, then is the message loop has higher priority?