Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cycle of Message loop

Cycle of Message loop

Scheduled Pinned Locked Moved C / C++ / MFC
hardwarequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    econy
    wrote on last edited by
    #1

    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?

    J D 2 Replies Last reply
    0
    • E econy

      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?

      J Offline
      J Offline
      jeron1
      wrote on last edited by
      #2

      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?

      Not normally see here.[^]

      1 Reply Last reply
      0
      • E econy

        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?

        D Offline
        D Offline
        dusty_dex
        wrote on last edited by
        #3

        econy wrote:

        Hi, I wonder how much is the cycle of message loop.

        Approximately 100 messages per second.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups