<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - Java Objects in Multi-threaded Environment</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Thu, 23 May 2013 18:23:19 -0400</pubDate>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[<p>This <a href="http://www.articlewritingclicks.com/Dll_Errors/Singleinstance_class_ytsingleinstancedll_Error__Solved.html" target="_blank">singleinstance   class ytsingleinstance.dll</a> post&nbsp; helps you to find your solution...</p>]]></description>
        

        <pubDate>Wed, 25 Jan 2012 08:31:04 -0500</pubDate>

        

        <jf:creationDate>Wed, 25 Jan 2012 08:31:04 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 25 Jan 2012 08:31:04 -0500</jf:modificationDate>
        <jf:date>Jan 25, 2012</jf:date>
        <jf:author>rrrmmm</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>multi-threaded environment static methods</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[<p>Assertation that variables used by static methods all are allocated on stack is incorrect. If the static method uses static variables of the class they are not on the stack and you need a concurrent object for synchronization to avoid the racing...]]></description>
        

        <pubDate>Thu, 19 Jan 2012 13:14:10 -0500</pubDate>

        

        <jf:creationDate>Thu, 19 Jan 2012 13:14:10 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 19 Jan 2012 13:14:10 -0500</jf:modificationDate>
        <jf:date>Jan 19, 2012</jf:date>
        <jf:author>Yakov Vizel</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[Thanks for the reply....]]></description>
        

        <pubDate>Tue, 16 May 2006 10:41:51 -0400</pubDate>

        

        <jf:creationDate>Tue, 16 May 2006 10:41:51 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 16 May 2006 10:41:51 -0400</jf:modificationDate>
        <jf:date>May 16, 2006</jf:date>
        <jf:author>Liju Augustine</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[Sorry for delay in reverting back .. Got too much stuck up with work. <br><br>No even though the objects are retrieved from static HashMap they are still instances and the actual instance still lies in the heap. It behaves exactly like any normal...]]></description>
        

        <pubDate>Tue, 09 May 2006 18:27:07 -0400</pubDate>

        

        <jf:creationDate>Tue, 09 May 2006 18:27:07 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 09 May 2006 18:27:07 -0400</jf:modificationDate>
        <jf:date>May 9, 2006</jf:date>
        <jf:author>Debashish Ghosh</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[Thanks for the update.<br><br>Now related to that I have a question. A kind of singleton approach. I have a manger class that caches objects in a static HashMap (should sit in stack right?) .<br><br>At init of the class, I add one object each of other...]]></description>
        

        <pubDate>Thu, 04 May 2006 17:37:05 -0400</pubDate>

        

        <jf:creationDate>Thu, 04 May 2006 17:37:05 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 04 May 2006 17:37:05 -0400</jf:modificationDate>
        <jf:date>May 4, 2006</jf:date>
        <jf:author>Liju Augustine</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[All static methods and variables are present in stack unlinke instance methods and variables which are present in heap. Hence calling static methods is faster since there is no extra level of indirection. There is never a pool of static methods . A...]]></description>
        

        <pubDate>Tue, 02 May 2006 09:15:28 -0400</pubDate>

        

        <jf:creationDate>Tue, 02 May 2006 09:15:28 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 02 May 2006 09:15:28 -0400</jf:modificationDate>
        <jf:date>May 2, 2006</jf:date>
        <jf:author>Debashish Ghosh</jf:author>
        <jf:replyCount>4</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[Thanks<br><br>I am little confused about the concurrent execution of the static method. When one thread enters the static method, how the other thread concurrently execute the same method. We have only one copy of the method here right? I know JVM can...]]></description>
        

        <pubDate>Mon, 01 May 2006 16:06:38 -0400</pubDate>

        

        <jf:creationDate>Mon, 01 May 2006 16:06:38 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 01 May 2006 16:06:38 -0400</jf:modificationDate>
        <jf:date>May 1, 2006</jf:date>
        <jf:author>Liju Augustine</jf:author>
        <jf:replyCount>5</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[As far as the static methods are not syncrhonized other threads dont have to wait for the lock .. They simultaneously execute the method . Hence u need to be careful if the changes in your static variables affect your output in such a case . Static...]]></description>
        

        <pubDate>Fri, 28 Apr 2006 15:09:37 -0400</pubDate>

        

        <jf:creationDate>Fri, 28 Apr 2006 15:09:37 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 28 Apr 2006 15:09:37 -0400</jf:modificationDate>
        <jf:date>Apr 28, 2006</jf:date>
        <jf:author>Debashish Ghosh</jf:author>
        <jf:replyCount>6</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[Thanks both for the explanation..<br>I am not talking about a synchronized satatic method. I am talking about a 'regular public static method'. To give an example, say we have a utility class method (public static) to do some computational job. It gets...]]></description>
        

        <pubDate>Fri, 28 Apr 2006 14:13:40 -0400</pubDate>

        

        <jf:creationDate>Fri, 28 Apr 2006 14:13:40 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 28 Apr 2006 14:13:40 -0400</jf:modificationDate>
        <jf:date>Apr 28, 2006</jf:date>
        <jf:author>Liju Augustine</jf:author>
        <jf:replyCount>7</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[As explained above the thread executing the single instance of class object's static synchronized method has to first acquire a lock on that object to execute the method. Once it has entered the method the lock has been already acquired by that thread...]]></description>
        

        <pubDate>Fri, 28 Apr 2006 13:36:43 -0400</pubDate>

        

        <jf:creationDate>Fri, 28 Apr 2006 13:36:43 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 28 Apr 2006 13:36:43 -0400</jf:modificationDate>
        <jf:date>Apr 28, 2006</jf:date>
        <jf:author>Debashish Ghosh</jf:author>
        <jf:replyCount>8</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[Only one thread can executes the the synchronized static method or block at any point of time and the other threads would wait to get the lock for execution of same.<br>A lock is like a privilege that only one thread can &quot;possess&quot; at any one...]]></description>
        

        <pubDate>Thu, 27 Apr 2006 18:47:11 -0400</pubDate>

        

        <jf:creationDate>Thu, 27 Apr 2006 18:47:11 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 27 Apr 2006 18:47:11 -0400</jf:modificationDate>
        <jf:date>Apr 27, 2006</jf:date>
        <jf:author>satheesh kadali</jf:author>
        <jf:replyCount>9</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[<blockquote>Hi,&amp;nbsp;&amp;nbsp;Answering your first question :&amp;nbsp;&amp;nbsp;&amp;nbsp;Thread safety for instance variables come into picture only when the same instance is accessed by many threads. Typical example would be a singleton instance...]]></description>
        

        <pubDate>Thu, 27 Apr 2006 14:27:01 -0400</pubDate>

        

        <jf:creationDate>Thu, 27 Apr 2006 14:27:01 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 27 Apr 2006 14:27:01 -0400</jf:modificationDate>
        <jf:date>Apr 27, 2006</jf:date>
        <jf:author>Liju Augustine</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[Hi,<br>&nbsp;&nbsp;Answering your first question :<br>&nbsp;&nbsp;&nbsp;Thread safety for instance variables come into picture only when the same instance is accessed by many threads. Typical example would be a singleton instance accessed by many threads...]]></description>
        

        <pubDate>Wed, 26 Apr 2006 13:58:58 -0400</pubDate>

        

        <jf:creationDate>Wed, 26 Apr 2006 13:58:58 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 26 Apr 2006 13:58:58 -0400</jf:modificationDate>
        <jf:date>Apr 26, 2006</jf:date>
        <jf:author>Debashish Ghosh</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Java Objects in Multi-threaded Environment</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=40020</link>

        

        
            <description><![CDATA[I am a java developer with more than 6 year of experience but still I am frequently haunted by some pretty basic questions about thread safely. I am having trouble with the following<br><br>1. I need to know how the private variables are handled in a...]]></description>
        

        <pubDate>Thu, 20 Apr 2006 17:26:56 -0400</pubDate>

        

        <jf:creationDate>Thu, 20 Apr 2006 17:26:56 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 20 Apr 2006 17:26:56 -0400</jf:modificationDate>
        <jf:date>Apr 20, 2006</jf:date>
        <jf:author>Liju Augustine</jf:author>
        <jf:replyCount>13</jf:replyCount>
    </item>



</channel>
</rss>

