tag:blogger.com,1999:blog-1408910361064787621.post7028587171121827140..comments2024-02-29T23:26:24.744-08:00Comments on On Java Hell: Using the Singleton Design Pattern in a multithreaded environmentJulien Dechmannhttp://www.blogger.com/profile/12619192889843922362noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-1408910361064787621.post-67942248905244332172023-08-18T00:53:48.553-07:002023-08-18T00:53:48.553-07:00salt likit
salt likit
dr mood likit
big boss likit...<a href="https://bit.ly/salt-likit" title="salt likit" rel="nofollow">salt likit</a><br /><a href="https://esaltlikit.com/" title="salt likit" rel="nofollow">salt likit</a><br /><a href="https://esaltlikit.com/urun-kategori/dr-mood/" rel="nofollow">dr mood likit</a><br /><a href="https://esaltlikit.com/urun-kategori/big-boss-likit/" rel="nofollow">big boss likit</a><br /><a href="https://esaltlikit.com/urun-kategori/dl-likit/" rel="nofollow">dl likit</a><br /><a href="https://esaltlikit.com/urun-kategori/dark-likit/" rel="nofollow">dark likit</a><br />2T4NAsilnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-80833895792084440482023-08-08T02:21:14.399-07:002023-08-08T02:21:14.399-07:00yurtdışı kargo
resimli magnet
instagram takipçi sa...<a href="https://www.hizlikargola.com/" title="yurtdışı kargo" rel="nofollow">yurtdışı kargo</a><br /><a href="https://bit.ly/resimli-magnet" title="resimli magnet" rel="nofollow">resimli magnet</a><br /><a href="https://bit.ly/takipci-satin-al-takipci-satin-al-takipci-satin-al" title="instagram takipçi satın al" rel="nofollow">instagram takipçi satın al</a><br /><a href="https://bit.ly/yurtdisi-kargo-yurtdisi-kargo" title="yurtdışı kargo" rel="nofollow">yurtdışı kargo</a><br /><a href="https://bit.ly/sms-onay" title="sms onay" rel="nofollow">sms onay</a><br /><a href="https://bit.ly/dijital-kartvizit" title="dijital kartvizit" rel="nofollow">dijital kartvizit</a><br /><a href="https://gomybio.com/blog/dijital-kartvizit-nedir-5" title="dijital kartvizit" rel="nofollow">dijital kartvizit</a><br /><a href="https://nobetci-eczane.org/" rel="nofollow">https://nobetci-eczane.org/</a><br />EİOMBWNamıknoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-55065639309733249772020-04-13T01:30:34.469-07:002020-04-13T01:30:34.469-07:00Well explained . Great article on singleton patter...Well explained . Great article on singleton pattern . There is also good singleton pattern example visit <a href="https://www.javavogue.com/2015/11/how-to-make-singleton-class-in-java.html/" rel="nofollow"> Singleton class example </a>subham kumarhttps://www.blogger.com/profile/01727881826778414825noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-20851727840616946792014-10-15T04:53:30.923-07:002014-10-15T04:53:30.923-07:00I have one doubt regarding this, first time it cre...I have one doubt regarding this, first time it creates one singleton object its fine. but 2nd time 100 request came at a time. all checks the object is null or not. It was not null, then all shares the same object.<br /><br />Here my question is if all threads shares the same object. <br />case 1) If one thread update the state of the singleton object, it will impact on second thread, 3rd thread.... because they also using same object.<br /><br />case 2) if we are synchronise that object only one thread can access at a time. but it is not good at banking applications. because N number of users are doing transactions at time. In this situation how singleton handle ?<br /><br />--- Ravi Kumar Badavatu Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-66353571754483046372014-10-15T04:52:33.304-07:002014-10-15T04:52:33.304-07:00I have one doubt regarding this, first time it cre...I have one doubt regarding this, first time it creates one singleton object its fine. but 2nd time 100 request came at a time. all checks the object is null or not. It was not null, then all shares the same object.<br /><br />Here my question is if all threads shares the same object. <br />case 1) If one thread update the state of the singleton object, it will impact on second thread, 3rd thread.... because they also using same object.<br /><br />case 2) if we are synchronise that object only one thread can access at a time. but it is not good at banking applications. because N number of users are doing transactions at time. In this situation how singleton handle ? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-59966247716309795232012-08-20T05:41:04.141-07:002012-08-20T05:41:04.141-07:00I agree Enum is best way to implement Singleton pa...I agree Enum is best way to implement <a href="http://javarevisited.blogspot.gr/2012/07/why-enum-singleton-are-better-in-java.html" rel="nofollow">Singleton pattern in Java 5</a> world. It automatically handles Serializable Singleton and thread-safe creation.java67http://java67.blogspot.comnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-36747099491722780822012-07-09T05:50:47.953-07:002012-07-09T05:50:47.953-07:00why we declare static in "private volatile st...why we declare <b>static</b> in "private volatile <b>static</b> Singleton instance;"?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-18622895963918081222011-08-02T08:54:25.054-07:002011-08-02T08:54:25.054-07:00Hi
Use of volatile is not neccessary if the variab...Hi<br />Use of volatile is not neccessary if the variable is static. It is only required if the variable is non static.<br /><br />Thanks<br />RamAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-78623552588224000942011-07-26T23:42:11.550-07:002011-07-26T23:42:11.550-07:00Enums are not the solutions if you need to impleme...Enums are not the solutions if you need to implement interfaces or extend other classes. Then you'd need to stick to the last solution mentionedZackhttp://www.zagdul.denoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-52416614160179920462011-03-12T09:17:11.688-08:002011-03-12T09:17:11.688-08:00The best way to achieve this goal(singleton dp) is...The best way to achieve this goal(singleton dp) is to implement Singleton as Enum cause when Singleton should be serializable, it's very easy to forget to implement readResolve() method...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-33229976486880480552009-05-30T03:48:12.804-07:002009-05-30T03:48:12.804-07:00Update done.Update done.Julien Dechmannhttps://www.blogger.com/profile/12619192889843922362noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-68640038850154594602009-05-30T03:21:47.797-07:002009-05-30T03:21:47.797-07:00Thanks for the comment. Indeed since Java 1.5 we c...Thanks for the comment. Indeed since Java 1.5 we can now declare a singleton as an Enum type. I'll make an update to illustrate this.Julien Dechmannhttps://www.blogger.com/profile/12619192889843922362noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-65854138970586956292009-05-29T20:59:05.875-07:002009-05-29T20:59:05.875-07:00Still you won't have a full-proof singleton which ...Still you won't have a full-proof singleton which can work on mulitthreaded enviornment and every OS.<br />Its really so tough to have full-proof Singleton.<br />Easy wasy would be to make your Singleton as Enum type .Anonymousnoreply@blogger.com