increase in cpu usage on locking and locking the system

Discussion in 'Computer Support' started by sowmya.rangineni@gmail.com, Jun 15, 2007.

  1. Guest

    Ours is a windows based application.
    When we open the application the CPU usage is 0% and the Memory Usage
    is 54,324Kb

    When I open a specific form in a module, the CPU usage is 0% and the
    Memory Usage increases accordingly (67,730 Kb).

    Now when I lock and unlock the System the CPU usage increases to 50%
    with the Memory Usage being 67,730 kb.

    I have made use of a .Net memory profiler and had taken snapshots
    before locking and unlocking the system.

    The following is the result after comparing both the versions.





    NameSpace Name Total New Removed Delta Total Max Min Delta
    System WeakRefrence 1681 613 0 613 26896 16 16 9808
    System.Reflection RunTimeMethodInfo 1229 8 0 8 29496 24 24 192
    System.Windows.Forms NativeMethods.TracKMOU.. 10 5 0 5 240 24 24 120
    System Runtimetype 2725 4 0 4 4360 16 16 64
    System String 37232 5 1 4 2256 102456 18 458



    Can anybody let me know the reason for the increase in CPU usage and
    how I can overcome this.

    And why is there a drastic increase in the number of instances for
    WeakReference class when the operation is just locking and unlocking
    and nothing to do with the application.

    Thanks in advance
    Sowmya
     
    , Jun 15, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. -a-geek.net

    Increase CPU cycles and RAM usage

    -a-geek.net, Sep 13, 2005, in forum: Computer Information
    Replies:
    3
    Views:
    1,359
    Drifter
    Sep 16, 2005
  2. -a-geek.net

    Increase CPU cycles and RAM usage

    -a-geek.net, Sep 13, 2005, in forum: Computer Information
    Replies:
    1
    Views:
    646
    Mark Mandell
    Sep 14, 2005
  3. Larry Mehl
    Replies:
    6
    Views:
    1,345
    Larry Mehl
    Jul 8, 2006
  4. raiderhawk

    Locking locking resolution Frontpage

    raiderhawk, Jan 8, 2008, in forum: General Computer Support
    Replies:
    0
    Views:
    974
    raiderhawk
    Jan 8, 2008
  5. Smoking Causes Lung Cancer (SCLC)

    URL: Firefox usage world wide continues to increase.

    Smoking Causes Lung Cancer (SCLC), Jan 26, 2008, in forum: NZ Computing
    Replies:
    0
    Views:
    374
    Smoking Causes Lung Cancer (SCLC)
    Jan 26, 2008
Loading...

Share This Page