📄️ Processor Memory Model
Relax the order of write-read operations in the program, thus producing the Total Store Ordering memory model (abbreviated as TSO). On the basis of the above, continue to relax the order of write-write operations in the program, thus producing the Partial Store Order memory model (abbreviated as PSO).
📄️ JAVA Virtual Machine
!20250922223849 1. Fetch binary stream: Get the binary stream defining the class by its fully qualified name.
📄️ JMM Related Content
For details please see. For reordering that changes program execution results, JMM requires compilers and processors to prohibit such reordering. For reordering that does not change program execution results, JMM makes no requirements for compilers and processors (JMM allows such reordering).
📄️ Java Concurrent Programming
Using Executor and CompletableFuture to concurrent execute the Many Queries. Below is commit changes.
📄️ Final Field Memory Knowledge
A write to a final field inside a constructor and the subsequent assignment of the reference of the constructed object to a reference variable cannot be reordered. The first read of a reference to an object containing a final field and the subsequent first read of this final field cannot be reordered.
📄️ Lock
 Locks are user-facing, defining the interface for users to interact with locks (e.g. allowing two threads to access in parallel), hiding implementation details;
📄️ Volatile Memory Domain
避免使用锁:无锁并发编程,多线程竞争锁时,会引起上下问文切换,所以多线程处理时,可以用一些办法来避免使用锁,如将数据的ID按照Hash算法取模分段,不同的线程处理不同段的数据 CAS算法:java的atomic包使用CAS算法来更新数据,而不需要加锁