1. Features:The thread that has acquired the lock requests the lock again, which can be obtained directly.2. Realize:Custom internal class Sync, inheriting Abstarctqueuedsynchronizer:2.1. Get lock : Lock ()A, Fair lock:Acquire (1)B, non-fair lock:if
I. What is an exceptionAbnormal English words are exception, literal translation is the meaning of "accident, exception", that is, abnormal situation. In fact, exceptions are procedural errors in nature, including procedural logic errors and system
This kind of wrapper, specifically supported by the compiler, is called boxing, so when the built-in data type is used as an object, the compiler will box the built-in type into a wrapper class. Similarly, the compiler can also disassemble an object
Problem Analysis:PermGen space is the full name of permanent Generation space, refers to the memory of the permanent storage area, this block of memory is mainly stored by the JVM class and meta information, class is loader will be placed in PermGen
Program Counter Register: A small amount of memory space that can be seen as the line number indicator of the byte code executed by the current thread. The bytecode interpreter works by changing the value of this counter to select the next byte-code
In the development process, often many people are accustomed to use the new date () to get the current time, it is more convenient to use, but also to get the current time related to all aspects of information, such as get hours, minutes and so on,
Tag: false getc Style time () Targe ref event Send identityWhat is EventbusEventbus is an implementation of the publish-subscribe pattern. It realizes the decoupling and communication between components in a very elegant way, and it is widely used
There are two types of data in Java, basic data types and reference data types, and the creation of reference data types isYou need to go to the new object, where the memory of the object is allocated to the heap, and the stack saves a reference to
Detailed description of Struts2 single-choice buttons and sample code for converting enumeration types.
This article mainly describes the Struts2 framework radio button details and examples of Enumeration type conversion, as follows.
To use the
Java array arrangement and combination problem summary, java array arrangement and combination
During the interview or written examination, I have encountered the following 4 hand-Tearing algorithms for arrangement and combination. Here I will take
Spring boot jar startup Principle Analysis, springjar1. Preface
Recently, I have made some optimizations to the company's open api platform. When I typed a jar package, I suddenly thought that I used spring boot very well, however, I never knew how
HashMap source code analysis, hashmap source code
The JDK version I use is 1.8.0 _ 144.
HashMap is a common data structure that operates in the form of key-value pairs.
Source code analysis:
// Default initial capacity static final int
Detailed description of flag settings in JVM and detailed description of JVMflag settings
This article focuses on the detailed description of the flag settings in JVM. The details are as follows.1. Heap size settings
-Xmx3550m: sets the maximum
Java Study Notes day08_day09 _ Object Instantiation _ private_this,
1. Classes and objects
Class is a template.
Object Instantiation is to use the new keyword to create an actual object based on the template class.
2. Define classes and
How to Modify request parameter information by zuul in springcloud, springcloudzuul
Zuul is a Load balancer developed by Netflix Based on JVM routing and server.
Zuul functions:
Authentication
Stress Testing
Canary Test
Dynamic Routing
From getting started to getting started with Hibernate (1), getting started with hibernate
Hibernate (orm framework) (open source object link ing Framework)
Hibernate is an open-source object relationship ing framework that encapsulates JDBC
Sample Code for integrating spring boot into JPA, springbootjpa
This article introduces the sample code for integrating spring boot into JPA and shares it with you, as follows:
1. Create a New maven Project
2. Add required Dependencies
org.
Spring cloud implements the HA method of Eureka registration center, cloudeureka
Preface:
In the previous example, our Eureka Server is single-node. Once the node fails in production, it cannot provide service registration. To ensure the high
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service