CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2004
    Location
    Israel
    Posts
    174

    handles and computer performance

    1)what are execlly handels?
    2)if i have a software on aserver,which i se that hold say 100,000 handels or more does this effect the server performance?how can i check it? did any one read an article about this issue?


    thnaks in advance
    peleg

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: handles and computer performance

    1) A Handle is something (completely undefined as to content) that allows something else to reference something.

    2) The number of handles has little to do with performance. Assuming you are running Windows, start with using PerfMon.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Dec 2008
    Location
    Xi'an China
    Posts
    27

    Re: handles and computer performance

    In fact, A Handle is a system pointer. You should not worried about performance impact of Handle on system performance
    Life is similar to ....., if you cannot resist it, you should relax and enjoy it.

  4. #4
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: handles and computer performance

    Quote Originally Posted by Fireseed View Post
    In fact, A Handle is a system pointer. You should not worried about performance impact of Handle on system performance

    Handles are NOT (necessarily) pointers. They can be many things (some are indices into an array, some are simply timestamps, others are internal undocumented values).
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  5. #5
    Join Date
    Dec 2008
    Location
    Xi'an China
    Posts
    27

    Re: handles and computer performance

    Quote Originally Posted by TheCPUWizard View Post
    Handles are NOT (necessarily) pointers. They can be many things (some are indices into an array, some are simply timestamps, others are internal undocumented values).
    Handle isn't a simple point on significance, whereas it is used as a point in code.
    you may see following in winnt.h

    Code:
    typedef void *HANDLE;
    Life is similar to ....., if you cannot resist it, you should relax and enjoy it.

  6. #6
    Join Date
    Jan 2005
    Posts
    111

    Re: handles and computer performance

    If your application is a long running application, then handle leak is serious problem. In Windows if the handle count exceeds above a certain limit( not sure about the exact limit count ), there is a big possibility of application crash. So better to avoid the handle leak.

  7. #7
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: handles and computer performance

    Quote Originally Posted by ajaywinds View Post
    If your application is a long running application, then handle leak is serious problem. In Windows if the handle count exceeds above a certain limit( not sure about the exact limit count ), there is a big possibility of application crash. So better to avoid the handle leak.
    1) There is a difference between a leak, and valid usage [the post indicates NOTHING about leaks]

    2) There is no overcall count or limit. Certain types of RESOURCES have limits, but that is a totally different issue.

    So I fail to see what your post contributes to the actual situation that has been described, other than a statement of the obvious in a general way.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  8. #8
    Join Date
    Apr 1999
    Posts
    27,449

    Re: handles and computer performance

    Quote Originally Posted by Fireseed View Post
    Handle isn't a simple point on significance, whereas it is used as a point in code.
    I don't know what all that means. A "handle" is just an informal way to specify some value type that the user uses in a program. It really has no definite meaning. For example, file handles, image handles, they could be pointers, structs, typedefs, or anything the author wishes them to be.

    Regards,

    Paul McKenzie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured