Search Results

Search found 5 results on 1 pages for 'saugata'.

Page 1/1 | 1 

  • Singleton pattern and broken double checked locking in real world java application

    - by saugata
    I was reading the article Double-checked locking and the Singleton pattern, on how double checked locking is broken, and some related questions here on stackoverflow. I have used this pattern/idiom several times without any issues. Since I have been using Java 5, my first thought was that this has been rectified in Java 5 memory model. However the article says This article refers to the Java Memory Model before it was revised for Java 5.0; statements about memory ordering may no longer be correct. However, the double-checked locking idiom is still broken under the new memory model. I'm wondering if anyone has actually run into this problem in any application and under what conditions.

    Read the article

  • Can I find out if the java program was launched using java or javaw

    - by saugata
    This is related to an earlier question by a different user How to detect that code is running inside eclipse IDE I noticed that eclipse always launches programs with javaw rather than java. (This does not imply a program launched with javaw was launched from eclipse). I can find the arguments passed using RuntimeMXBean RuntimemxBean = ManagementFactory.getRuntimeMXBean(); List<String> lst=RuntimemxBean.getInputArguments(); for(int i=0;i<lst.size();i++) System.out.println(lst.get(i)); But this does not tell me whether it was launched using java or javaw. Is there any way to find it out? Another related question is why does eclipse use javaw to launch programs?

    Read the article

  • What exactly is a "key container"?

    - by saugata
    Is it something specific, with a definite structure, or just an arbitrary data file with some form of encryption to hold keys, and potentially other secret information? Can someone please explain the term or point me to a link.

    Read the article

1