包含标签:Java 的文章
-
Skip list and concurrentskiplistmap
1、 Skip list For a single linked list, even if the linked list is ordered, if you want to find a data in it, you can …… -
JDK SPI mechanism
1、 Overview We first saw the SPI mechanism in the implementation of Dubbo. Recently, we found that it is not a new th…… -
See what Web attack technologies are available
1、 Foreword HTTP protocol has the characteristics of stateless, no connection and best effort. The attacks on Web sit…… -
Multithreaded programming learning three (communication between threads)
1、 Summary 2、 Waiting / notification mechanism 1. "Wait / notify" mechanism: wait / notify mechanism. Wait causes th…… -
Multi thread cross backup with wait / notify
1、 Mission Create 20 threads, of which 10 threads back up data to database a, the other 10 threads back up data to da…… -
Analysis of problems caused by improper use of resttemplate
background Problem phenomenon Analysis process These three problems are interrelated. The fuse is the third problem, t…… -
Common methods of stringutils tool class
Foreword: I saw that Daniel in the project team wrote code and used stringutils tool class to do string operation, so …… -
Multithreaded programming learning one (the basis of Java multithreading)
1、 Process and thread concepts Process: the execution of a program is called a process. Each process has independent …… -
Multithreaded programming learning II (concurrent access to objects and variables)
1、 Concept 2、 Synchronized synchronization method 1. The problem of non thread safety exists in the instance variabl…… -
Multithreaded programming learning 12 (reading notes)
1、 Multithreading semantics 2、 Java Memory Model 3、 Memory semantics for synchronized, volatile, and final 4、 Other -
Java reflection mechanism
1、 Concept Java reflection is a method by which a java program can load a class whose name is known only when it runs…… -
See what web authentication technologies are available
Basic certification Basic authentication (basic authentication) is an authentication method defined from http / 1.0. B…… -
Elegant encoding using Lombok
1、 Introduction and use Lombok is a Java library that can simplify java code in the form of simple annotations and im…… -
Java file stream operation
1、 Concept In Java, The input and output of the file is through the stream (stream). A stream must be an active end a…… -
Multithreaded programming learning 6 (blocking queue in Java)
introduce Blocking queue means that when the queue is full, the queue will block the thread inserting elements until t…… -
Collaboration Library in Java – quasar
1、 Synergetic process A process can produce many threads. Each thread has its own context. When we use multithreading…… -
Final keyword
1. Overview The most common meaning is to declare that "this thing cannot be changed". The reason for banning change m…… -
Java 8 functional programming
1、 Function interface Why start with the function interface first? Because I think this is the entrance to java8 func…… -
Transformation of mail sending class smtpappender of log4j
During the development process, we sometimes need to send important error logs to relevant responsible persons by emai…… -
Parsing of string’s intern() method
1、 Overview In the versions before and after JDK7, there are differences in the implementation of string's intern() m…… -
Interpretation of the source code of concurrentlinkedqueue
1、 Introduction Concurrentlinkedqueue is an unbounded thread safe queue based on linked nodes. It is non blocking. It…… -
Interpretation of ThreadLocal source code
1、 Introduce public class Thread implements Runnable { /* 前面略 */ /* ThreadLocal values pertaining to thi…… -
Basic knowledge of computer network
1、 Computer network classification Local area network (LAN) is a computer communication network formed by connecting …… -
Multithreaded programming learning ten (thread pool principle)
1、 Thread pool workflow Tips: This design scheme can avoid frequent thread creation, and most work tasks will stay in…… -
Comparison of execution efficiency between ArrayList and LinkedList
1、 Concept: Generally, we all know that ArrayList * is a list derived from an array. Used as a general-purpose object…… -
Front and rear end separation demo hotel management system
model design hotel management system, mainly related to check-in, check-out and room and guest information manageme…… -
Java serialization mechanism
1、 Why serialize? 1. Generally, Java objects can exist only when the JVM is running, that is, the life cycle of these…… -
Java development history
JDK 1.0 In April 1991, The green project, led by Dr. James Gosling, began to develop a program architecture that can r…… -
On the concepts of Java RTTI and reflection
1、 Concept RTTI (run time type identification) means to identify the type of an object at runtime, and its correspond…… -
What does RPC look like after peeling off layers of coat?
RPC, the full name of which is remote procedure call. Generally speaking, it refers to calling functions on the remote…… -
JDK dynamic proxy and cglib bytecode enhancement
1、 JDK dynamic agent Java in Java Lang.reflect package has its own proxy support. This class (proxy. Java) is used to…… -
What happens when CPU or memory usage is too high
During the development process, sometimes we find that the CPU / memory occupied by the JVM remains high, which is inc……