2021SC@SDUSC [software engineering application and practice] Cocoon project 9- analysis core folder
2021SC@SDUSC
IncludeTransformer.java (Part 2)
In this blog, I will continue to analyze the two internal classes class IncludeElement and class IncludeXMLPipe in IncludeTransformer.java.
class IncludeElement
1. Properties:
//Parameter control includes recursive processing.
private boolean recursive;
//Parameter control parallelism (in m ...
Posted by sharmeen on Sat, 06 Nov 2021 01:09:01 -0700
[java basics] thread life cycle, two methods of creation and use, and thread synchronization
catalogue
1, Concept
1. Program, process, thread
2, Creation and use of threads
1. By inheriting the Thread class
2. By implementing the Runnable interface:
3. Related methods in Thread class
4. Thread priority
3, Thread life cycle
1. Several states of threads
4, Thread synchronization
1. Synchronous code block
...
Posted by mooshuligan on Sat, 06 Nov 2021 00:29:16 -0700
Responsibility chain pattern of Java design pattern
Responsibility chain model
Business requirements: OA system procurement approval requirements (Procurement approval items of school OA system):
Purchaser purchases teaching equipmentIf the amount is less than 5000, it shall be approved by the Dean [0 < = x < = 5000]If the amount is less than 10000, it shall be approved by the presiden ...
Posted by GiaTuan on Fri, 05 Nov 2021 22:23:23 -0700
Parameter passing in Java
1. Is java value passing or reference passing?
This is a controversial but not controversial question. If you ask, you can answer that it is value transmission. Let's learn about parameter passing in Java
2. What is value passing and reference passing?
Value transfer:
Value passing refers to copying and passing a copy of the actu ...
Posted by seanrock on Fri, 05 Nov 2021 21:37:34 -0700
On atomic class
What are atomic classes and what are their functions?
inseparableAn operation is non interruptible and can be guaranteed even in the case of multithreadingjava.util.concurrent.atomicAtomic classes are similar to locks to ensure thread safety in concurrency. However, atomic classes have some advantages over locksFiner granularity: atomic variab ...
Posted by web_master on Fri, 05 Nov 2021 20:59:19 -0700
Deeply explore the characteristics and principle of FST's sharp tool for fast serialization and compression of memory
Concept and definition of FSTThe full name of FST serialization is Fast Serialization Tool, which is an alternative implementation of Java serialization. Since the two serious shortcomings of Java serialization mentioned above have been greatly improved in FST, the characteristics of FST are as follows:The serialization provided by JDK is incre ...
Posted by JParishy on Fri, 05 Nov 2021 20:57:18 -0700
N-queen problem analysis and solution algorithm diagram, flow chart and complexity
1, Problem description
Problem Description: the n queen problem studies how to place n queens in n × N's chessboard, and the Queens can't attack each other. Give you an integer n and return the solution of all different N Queen problems. Each solution contains a different chess placement scheme for the n-queen problem, in which 'Q' a ...
Posted by ephmynus on Fri, 05 Nov 2021 20:56:56 -0700
Timer timer use
1, Timer timer basic usage
Timer timer = new Timer(); timer.schedule(TimerTask, Date);, The task needs to be encapsulated with TimerTask, and the run method in TimerTask is rewrittenTimer timer = new Timer(boolean);, Passing a value of true indicates that the timer thread is a daemon thread, and the end of the main thread follows the end. Th ...
Posted by redtux on Fri, 05 Nov 2021 20:18:32 -0700
[Java] understanding and implementation through Java -- sequence table and single chain table
🍉 Linear table
A linear list is a finite sequence of n data elements with the same characteristics. Linear table is a data structure widely used in practice. Common linear tables: sequential table, linked list, stack, queue, string A linear table is logically a linear structure, that is, a continuous straight line. However, the physi ...
Posted by gljaber on Fri, 05 Nov 2021 19:57:54 -0700
< 2021SC@SDUSC > netty use -- implementation of simple chat room
2021SC@SDUSC
preface
In the initial use of the previous blog netty, we simply wrote the code between the client and the server to realize two-way communication. This time, we made some improvements on the basis of the last code and preliminarily realized the function of chat room.
1, Server
1,Server
The Server class itself has not chang ...
Posted by bughunter2 on Fri, 05 Nov 2021 19:17:07 -0700