tag:blogger.com,1999:blog-4082727386380671161.post2503229310005107536..comments2024-03-29T00:12:25.628-07:00Comments on java.interview.preparation: Java Cache : Static data loadingJava Interview Questionshttp://www.blogger.com/profile/04482363810065954772noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-4082727386380671161.post-33019947072454394982018-04-27T22:45:36.894-07:002018-04-27T22:45:36.894-07:00Really something Grate in this article Thanks for ...Really something Grate in this article Thanks for sharing this. We are providing Online Training Classes. After reading this slightly I am changed my way of introduction about my training to people. <br /><br /><a href="http://www.ciitnoida.com/job-oriented-tranings/56/redhat-linux-training-institute-noida-delhi-gurgaon" rel="nofollow">Best Linux training in Noida</a><br /><a href="http://www.ciitnoida.com/job-oriented-tranings/53/linux-training-in-noida" rel="nofollow">Linux Training Institute in Noida</a><br /><a href="http://www.ciitnoida.com/job-oriented-tranings/54/shell-scripting-training-in-noida" rel="nofollow">Shell Scripting Training Institute in Noida</a><br />ciitnoidahttps://www.blogger.com/profile/13411560277382130436noreply@blogger.comtag:blogger.com,1999:blog-4082727386380671161.post-13647193178950901662016-03-06T14:00:28.696-08:002016-03-06T14:00:28.696-08:00Please note: There's a serious bug in JDK 8, w...Please note: There's a serious bug in JDK 8, which leads to memory issues and high CPU usage, because threads are stuck in ConcurrentLinkedQueue#remove.<br />https://bugs.openjdk.java.net/browse/JDK-8054446<br /><br />My workaround is to use a ConcurrentLinkedDeque instead.Christian Schudthttps://www.blogger.com/profile/05150185502293392614noreply@blogger.comtag:blogger.com,1999:blog-4082727386380671161.post-82091085031763462542015-12-07T14:52:12.199-08:002015-12-07T14:52:12.199-08:00It's not an LRU cache, LRU means least recentl...It's not an LRU cache, LRU means least recently *used* not least recently put. Also I can't see how you "concurrent" version is thread safe. You can have very odd behavior if multiple threads put some value for the same key.Anonymoushttps://www.blogger.com/profile/16938589604836973999noreply@blogger.comtag:blogger.com,1999:blog-4082727386380671161.post-53471338754610117562015-11-04T10:46:02.579-08:002015-11-04T10:46:02.579-08:00Now days guava cache is most popular.For this we u...Now days guava cache is most popular.For this we use google guava library and make cache in easy steps.see fully example <br /><br />http://www.javaproficiency.com/2015/05/guava-cache-memory-example.htmlShivam Kumarhttps://www.blogger.com/profile/12633731033655211922noreply@blogger.comtag:blogger.com,1999:blog-4082727386380671161.post-37646199309489793032014-04-23T11:38:24.054-07:002014-04-23T11:38:24.054-07:00Can we not use LinkedHashMap alone, ConcurrentLink...Can we not use LinkedHashMap alone, ConcurrentLinkedQueue may be creating extra Objects.kanaparthi kiranhttps://www.blogger.com/profile/05982583746084158286noreply@blogger.comtag:blogger.com,1999:blog-4082727386380671161.post-69574465693960254342013-09-06T00:41:03.895-07:002013-09-06T00:41:03.895-07:00Yes we can use, but the issue is it is not threads...Yes we can use, but the issue is it is not threadsafe. Ideally we can use concurrentlinkedhashmap [https://code.google.com/p/concurrentlinkedhashmap/] which is provided by google library.Java Interview Questionshttps://www.blogger.com/profile/04482363810065954772noreply@blogger.comtag:blogger.com,1999:blog-4082727386380671161.post-47114346252420882282013-08-21T00:32:02.720-07:002013-08-21T00:32:02.720-07:00Here queue is used to just check the size right ?....Here queue is used to just check the size right ?. if so we can use linked hash map which can be of fixed size.. saktheeshhttps://www.blogger.com/profile/08338177347075414142noreply@blogger.com