Measuring the time spent in syncrhonization for a ConcurrentHashMap?

Discussion in 'Java' started by John, Mar 11, 2008.

  1. John

    John Guest

    Hi,
    i'd like to know the time spent waiting by 2 threads wich are accessing a ConcurrentHashMap.

    Is there an easy way to do this (some counter or trigger featured by the JVM) ?

    If not, what can be the best way to get some approximation ?

    Have you some good pointers for this specifiec problem (2 readers accessing some Map).

    Thanks for any help
    John, Mar 11, 2008
    #1
    1. Advertising

  2. Re: Measuring the time spent in syncrhonization for aConcurrentHashMap ?

    On 11 Mar, 09:55, John <> wrote:
    > Hi,
    > i'd like to know the time spent waiting by 2 threads wich are accessing a ConcurrentHashMap.
    >
    > Is there an easy way to do this (some counter or trigger featured by the JVM) ?
    >
    > If not, what can be the best way to get some approximation ?
    >
    > Have you some good pointers for this specifiec problem (2 readers accessing some Map).
    >
    > Thanks for any help


    read about java microbenchmarks - there are several helpful articles
    by Brian Goetz.
    Krzysiek Zaporowski, Mar 11, 2008
    #2
    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. Dan
    Replies:
    0
    Views:
    367
  2. James Yong

    Using ConcurrentHashMap

    James Yong, Sep 24, 2005, in forum: Java
    Replies:
    5
    Views:
    11,886
    javabudy
    Jan 8, 2011
  3. Thomas Hawtin
    Replies:
    0
    Views:
    1,134
    Thomas Hawtin
    Nov 30, 2006
  4. Rakesh
    Replies:
    3
    Views:
    4,222
    Tom Anderson
    Mar 10, 2009
  5. Indiresh
    Replies:
    0
    Views:
    129
    Indiresh
    Aug 31, 2005
Loading...

Share This Page