In the Java language, concurrent programming is realized by creating thread pools, and there are many ways to create thread pools. Each way of creating thread pools corresponds to different usage scenarios. Generally speaking, the creation of thread pools can be divided into the following two categories:
Manually create a thread pool through T ...
Posted by saeed42 on Tue, 08 Mar 2022 03:36:44 +0100
Basic java learning -- Chapter 2 basic Java syntax
1, Keywords and identifiers
1. Definition of identifier
All places where you can name yourself are called identifiers, such as class name, variable name, method name, interface name, package name
2. Naming rules of identifiers
(if it is not complied with, the compilation fails)
It consists of ...
Posted by iKwak on Tue, 08 Mar 2022 03:32:15 +0100
java multithreaded pipeline method, semaphore method
1. Tube pass method:
Producer: the module responsible for production data (may be method, object, thread, process) Consumer: module responsible for processing data (may be method, object, thread, process) Buffer zone: consumers cannot directly use the producer's data. There is a buffer zone ...
Posted by LinuxForce on Tue, 08 Mar 2022 03:20:39 +0100
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
1, BackgroundWhen the server provides interface services to the outside, whether it is providing HTTP interfaces to the front end or RPC interfaces to other internal servers, it often faces such a problem, that is, how to gracefully solve the verification of various interface parameters?In the early days, when making the HTTP interface provided ...
Posted by barrywood on Tue, 08 Mar 2022 03:08:54 +0100
A friend suddenly asked me a question about the probability of winning in a row. I'll study it myself, share it with you and record it at the same time.
Xiao Ming plays 10 sets of King glory every day, and the winning and losing are completely random (the winning rate is 50%). Please write a simulation algorithm wit ...
Posted by shaoen01 on Tue, 08 Mar 2022 03:04:47 +0100
In this article, I will describe the most important and developer friendly features of Java since version 8. Why did 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 change ...
Posted by Fergal Andrews on Tue, 08 Mar 2022 02:56:51 +0100
1, Spring assembles beans based on XML
The assembly of beans can be understood as dependency injection. The assembly method of beans is also the dependency injection method of beans. Spring The container supports various forms of Bean assembly, such as XML based Bean assembly, Annotation based Bean assembly and automatic assembly.Spring XML ba ...
Posted by Hoppus on Tue, 08 Mar 2022 02:51:44 +0100
Recently, I learned a new content: JSON. After learning, I have a little concept. Write this blog to help me deepen my understanding. It's purely your own personal understanding. If there is any mistake, I hope you can point it out in time and forgive me.
First of all, we need to know something, what it is and what it is used ...
Posted by ppera on Tue, 08 Mar 2022 02:10:54 +0100
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