Deep Understanding of Java Virtual Machines (IV)

Detailed Description of Virtual Machine Performance Monitoring and Fault Handling Tools 4.1 Overview This article refers to Chapter IV of Zhou Zhiming's "Deep Understanding of Java Virtual Machine", in order to sort out ideas, simply record it for later reference. JDK itself provides a lot of convenient monitoring tools for JVM perfor ...

Posted by jwagner on Sat, 08 Jun 2019 16:28:06 -0700

[JDK Concurrent Packaging Foundation] Thread Pool Details

In order to better control multithreading, JDK provides a threading framework Executor to help programmers effectively control threads. The Java.util.concurrent package is designed for Java concurrent programming. There are many written tools under it:                    Brain Map Address Thank you. Deep and shallow Java Concurrency This brai ...

Posted by vwinstead on Thu, 06 Jun 2019 18:35:09 -0700

Article 21: Vector Source Analysis of JAVA Collections

Vector introduction Vector is also based on arrays. It is a dynamic array whose capacity can grow automatically. Vector is introduced by JDK 1.0, many of its implementation methods have added synchronization statements, so it is thread-safe (in fact, it is only relatively safe, sometimes it is necessary to add synchronization stateme ...

Posted by mcloan on Tue, 04 Jun 2019 14:53:37 -0700

Java Concurrent Programming - Condition

Before looking at Condition s, let's look at the following example: Factory class, used to store and take out goods: public class Depot { private int depotSize; //Warehouse size private Lock lock; //exclusive lock public Depot(){ depotSize = 0; lock = new ReentrantLock(); } /** * ...

Posted by nominator on Mon, 03 Jun 2019 21:05:04 -0700

Custom Annotations for Quatz Timing Tasks to Realize Dynamic Configuration Tasks

Project Requirements: Timing Tasks How to achieve it? spring has its own timing task, jdk has its own Timer, quartz implementation. Advantages and disadvantages, spring, annotation-based implementation, simple configuration, but rich tasks in the latter stage, after the modification of configuration is more difficult, and not easy to cont ...

Posted by sualcavab on Fri, 31 May 2019 13:15:57 -0700

Spring Source Reading-AOP Implementation Core Class AbstractAutoProxyCreator

The first two articles are mainly about registering the subclasses of AbstractAutoProxyCreator from two entries. Here is the implementation logic: First, look at the class diagram to find the location of AbstractAutoProxyCreator in spring: Indexed AbstractAutoProxyCreator is essentially BeanPostProcessor, which implements the logic of proxy ...

Posted by winmastergames on Wed, 29 May 2019 09:46:04 -0700

Thread Pool and Timing Task Function in Spring

1. Functional introduction The Spring framework provides an abstract interface between thread pool and timed task execution: TaskExecutor and Task Scheduler to support asynchronous and timed task execution. At the same time, the abstract interface defined by the framework itself is used to shield the differences between the underlying JDK versi ...

Posted by nakago on Sat, 25 May 2019 16:01:11 -0700

Concurrent HashMap Source Detailed Analysis (JDK 1.8)

1. overview HashMap Source Code Detailed Analysis (JDK 1.8): https://segmentfault.com/a/1190000012926722 Java 7's entire Concurrent HashMap is a Segment array. Segments are locked by inheriting ReentrantLock, so each operation that needs to be locked is a segment, so as to ensure that each Segment is thread-safe, it also achieves global thread ...

Posted by Copyright on Fri, 24 May 2019 16:32:07 -0700

Loadrunner 11 uses Java protocol to operate oracle Database

Tool preparation ​JDK Since it is a Java protocol, JDK is essential, but the largest version of JDK supported by lr11 is only jdk1.6, and it must be 32 bits. ​ jdbc connects jar packages To connect to oracle database, you need to prepare the database-driven jar package and select the corresponding version of the jar package acc ...

Posted by The voice on Thu, 23 May 2019 12:57:41 -0700

Decorator mode of Java design mode

Decorator mode, which dynamically adds a series of actions to an object through this design mode, without the need to generate a large number of inheritance classes due to the differences in these actions.This pattern is almost ubiquitous in JDK, for example: java.io.BufferedInputStream java.io.FileReader ... These classes are familiar eno ...

Posted by Mr.x on Wed, 22 May 2019 09:51:20 -0700