Talk about the Unsafe class in Java

1, Introduction to Unsafe class If you have seen the source code of JUC, I believe you will not be unfamiliar with the Unsafe class. The bottom core of the whole JUC is the Unsafe class. The Unsafe class is located in sun A class under misc package, which is a tool class (underlying c + + implementation) provided by jdk to directly access oper ...

Posted by juliston on Tue, 08 Mar 2022 03:18:42 +0100

Incomplete explanation of Java game programming - 4

preface Code demonstration environment: Software environment: Windows 10 Development tool: Visual Studio Code JDK version: OpenJDK 15 Sound effects and music Basic knowledge of sound effect When we play games, we may hear sound effects, but we don't really pay attention to them. Because I want ...

Posted by a1ias on Tue, 08 Mar 2022 02:11:22 +0100

JDK - principle of blocking queue and non blocking queue

preface Among the queues provided by jdk, there are blocking queues and non blocking queues Blocking queue refers to: when adding elements, if the queue is full, the currently queued thread will be blocked, and the queued thread will be put into the synchronization condition queue of AQS. After the queue element is out of the queue, it will tr ...

Posted by akabugeyes on Mon, 07 Mar 2022 23:04:36 +0100

Linux server-side application installation

Install JDK Uninstall the JDK pre installed in the system. Linux comes with java, but it cannot be compiled without javac, so it needs to be uninstalled and reinstalled rpm -qa | grep openjdk Perform uninstall. Use -- nodeps to ignore dependencies during uninstall [root@localhost ~]# rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.161-2. ...

Posted by PHP-Editors.com on Mon, 07 Mar 2022 03:28:14 +0100

Deploy the SpringBoot project to the server

1, SpringBoot project environment IntelliJ IDEA 2018.3.2Mysql 5.1 2, Tencent cloud CentOS 7.6 image server Students can apply for Tencent cloud student exclusive, 27 yuan for three months 3, Attention (1) XShell Modify host namehostnamectl set-hostname master #Set to master name View current hostnamehostname After modifying the hos ...

Posted by hypertech on Fri, 04 Mar 2022 22:56:20 +0100

JDK source code learning 06 currenthashmap analysis

JDK source code learning 06 currenthashmap analysis The principle of CurrentHashMap is very complex. You can only record what you understand. As we all know, the thread safety implementation principle of CurrentHashMap is Synchronized+CAS. Now let's take a look. Brief reading of notes * Overview: * The main design goal of this hash table is ...

Posted by nimzie on Fri, 04 Mar 2022 00:53:32 +0100

Classes commonly used in java (note 16)

1, String related classes 1. Create string Properties of String public final class String implements java.io.Serializable, Comparable<String>, CharSequence { /** The value is used for character storage. */ private final char value[]; /** Cache the hash code for the string */ private int hash; // Default to 0 Specific JDK API St ...

Posted by nedpwolf on Sun, 20 Feb 2022 11:10:40 +0100

java source code analysis - runtime annotation processor

java source code analysis - runtime annotation processor In the previous "java source code analysis - basic principles of annotation", we learned some basic concepts and principles of annotation. At the end of the article, we also clicked on the annotation processor. At that time, I said that annotation information is actually obtain ...

Posted by kaushikgotecha on Thu, 17 Feb 2022 19:27:37 +0100

Uninstallation, reinstallation and configuration of super detailed maven

For image download, domain name resolution and time synchronization, please click Alibaba open source mirror station 1, maven uninstall maven only configures the environment variable and local warehouse when it is used. We only need to delete the local warehouse and remove maven's environment variable from the environment variable. 1. Delete ...

Posted by azylka on Thu, 17 Feb 2022 06:09:50 +0100

The most complete summary of JDK new features in history, covering jdk8 to jdk15!

preface In this article, I will describe the most important and developer friendly features of Java since version 8. Why do you have such an idea? On the Web, you can find many articles containing a list of new features for each java version. However, due to the lack of articles, it is not possible to briefly outline the most important changes ...

Posted by GundamSV7 on Thu, 10 Feb 2022 10:31:44 +0100