one thread in Real Time priority freezes the OS

Discussion in 'Windows 7 Help and Support' started by izzyfr, Jul 31, 2011.

  1. izzyfr

    izzyfr New Member

    Joined:
    Jul 8, 2010
    Messages:
    8
    Likes Received:
    0
    Hey,
    I just mooved from WinXP to Win7 with my software.
    My software needs to have real time response to I/O so it makes busy-wait in one thread (wich has affinity to run on one CPU).

    The result is 100% CPU on one of the cores and 0 CPU for others, in WinXP it worked just fine.
    In win7 the system freezes. The software is a console software
    (for Windows program it beaves a bit diffrent. only if the main thread make busy-wait without peeking messages it freezes)

    Any ideas ?
     
  2. kemical

    kemical Windows Forum Admin
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    Aug 28, 2007
    Messages:
    31,841
    Likes Received:
    1,568
    Have you tried compatibility mode?
     
  3. izzyfr

    izzyfr New Member

    Joined:
    Jul 8, 2010
    Messages:
    8
    Likes Received:
    0
    Same behavior.
    I suspect that windows kernel makes some parallel computing using all CPUs and busy wait make it stack.
    Can you set the kernel affinity?
     
  4. kemical

    kemical Windows Forum Admin
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    Aug 28, 2007
    Messages:
    31,841
    Likes Received:
    1,568
    Unsure. Have you tried searching the MSDN Library?

    MSDN Library
     

Share This Page

Loading...