download zip of files only
Sat Feb 13 14:24:00 GMT 2021
From /weblog/java/fundamental
In this post we will be looking at crash logs, the hs_err file, that is generated when the Java Virtual Machine crashes. Trying to find what is going wrong, and which component to blame, is important to understand how to interpret the crash log file. The focus will be on understanding the frames that make up the stack trace. - https://inside.java/2021/02/12/deciphering-the-stacktrace/
(google search)
(amazon search)
Wed Jan 06 12:49:46 GMT 2021
From /weblog/java/string
Java's String.repeat Method in Action: Building PreparedStatement with Dynamic Number of Parameters - https://marxsoftware.blogspot.com[..]k11-string-repeat-preparedstatement.html
(google search)
(amazon search)
Thu Oct 08 00:22:27 GMT 2020
From /weblog/java/features
Invoking Assembly Language Programs using java native interface - http://today.java.net/lpt/a/330 Best practices for using the Java Native Interface - http://www.ibm.com/developerworks/java/library/j-jni/index.html Other library try to simple using native library - https://inside.java/2020/10/06/jextract/
(google search)
(amazon search)
Tue Jun 02 02:14:05 GMT 2020
From /weblog/java/libraries
Efficient Java Matrix Library (EJML) is a linear algebra library for manipulating real/complex/dense/sparse matrices. Its design goals are; 1) to be as computationally and memory efficient as possible for both small and large matrices, and 2) to be accessible to both novices and experts. These goals are accomplished by dynamically selecting the best algorithms to use at runtime, clean API, and multiple interfaces. EJML is free, written in 100% Java and has been released under an Apache v2.0 license. - http://ejml.org/wiki/index.php?title=Main_Page https://mkyong.com/java/java-mod-examples
(google search)
(amazon search)
Sun Mar 29 10:15:44 GMT 2020
From /weblog/java/concurrency
Even though private List synchList = Collections.synchronizedList(new LinkedList());
is thread safe, serialize sync List is NOT thread safe for sure. The story is, if you only synchronized the collection, and if we try to get the iterator in concurrent access environment, it will throws currencymodificationexception . For collection is small, may be making defensive copy http://www.javapractices.com/Topic15.cjp is good. Otherwise, in java5, there is concurrency collection. reference: http://jroller.com[..]ntry=collections_synchronizedlist_broken http://jroller.com/page/ctarrington?entry=java_collections_trivia Map operation, include use of FutureTask and putIfAbsent() method from ConcurrentMap. - http://www.javaspecialists.co.za/archive/newsletter.do?issue=125 Other then lterate through the elements, adding and removing elements can also be problem, this article document a few good cases about that - http://rayfd.wordpress.com[..]en-a-synchronized-class-isnt-threadsafe/ Samples of using Queue.drainTo() - http://binkley.blogspot.com[..]rforming-fixed-amounts-of-work-with.html http://tech.puredanger.com/2009/02/28/java-7-transferqueue/ Overview of blockingqueue - http://tutorials.jenkov.com[..]/java-util-concurrent/blockingqueue.html Simple benchmark - http://java-persistence-performance.blogspot.com[..]jvm-performance-part-iii-concurrent.html Multi-thread behaviour - http://vanillajava.blogspot.com[..]hread-safety-issues-with-vector-and.html java.util.concurrent.ConcurrentHashMap VS openhft.collections.SharedHashMap - http://openhft.blogspot.co.uk[..]autilconcurrentconcurrenthashmap-vs.html Why are there so many concurrent queues implementations in Java? - https://vmlens.com/articles/cp/why_so_many_queues/ Why hashmap is not thread safe - https://www.pixelstech.net[..]a-HashMap-is-considered-as-thread-unsafe
(google search)
(amazon search)
|