JAVA - multithreading three {multithreading state} JAVA starts from the foundation -- 3

Thread state new 1) Thread t= new Thread once the thread object is created, it enters the new state 2) When the start() method is called, the thread immediately enters the ready state, but it does not mean that the execution is scheduled immediatelyReady state (CPU scheduling operation)Blocking state (when sleep,wait or synchronous lo ...

Posted by TouranMan on Mon, 03 Jan 2022 14:12:45 +0100

[Java Zero to Architect Season 3] [08] MyBatis-Delayed Loading

Continuous Learning & Continuous Updating... Break away Why use delayed loading Delayed loading: reload when needed Many times, we don't have all the properties of an object temporarily, especially those that are complex and hugeFor example, I only want to know the id and name of the Person object right now, but I can't use L ...

Posted by turtlefox on Mon, 03 Jan 2022 13:35:58 +0100

Simply simulate the application scenario of reflection in Java

Some people say that Java is a static language. So what is static language and what is dynamic language? 1. Dynamic language It is a kind of language that can change its structure at run time: for example, new functions, objects and even code can be introduced, existing functions can be deleted or other structural changes. Generally speakin ...

Posted by blinks on Mon, 03 Jan 2022 13:18:34 +0100

Java simple design pattern

Java simple design pattern The realization of design pattern is to make it easier to maintain, more concise, high decoupling, reduce memory consumption and other excellent characteristics. 1. Singleton design pattern Singleton design pattern: ensure that a class has only one instance, and provide a global access point to access i ...

Posted by austingecko on Mon, 03 Jan 2022 12:28:06 +0100

#Raise your hands to learn Python # finish list and dictionary, and finish dictionary and set

Dictionaries and collectionsIt is a coincidence that dictionaries and collections are always put together because they are wrapped in braces {}.What are the basic operations of dictionaries and collectionsLet's start with the dictionaryThe dictionary is composed of Key Value pairs. The Key is Key and the Value is Value. Mark it in Python 3 Befo ...

Posted by breath18 on Mon, 03 Jan 2022 11:52:21 +0100

What is spring? What does spring do? What are the fundamentals of spring? Just read this one

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface ❤️ 1, Spring overview 🥇 1.1 INTRODUCTION Spring: Spring - > brings spring to the software industryIn 2002, Rod Jahnson first launched the Spring framework prototype inte ...

Posted by adam87 on Mon, 03 Jan 2022 11:38:11 +0100

Spring ten thousand word learning notes

1. Overview Spring framework is an open source, loosely coupled, layered and configurable one-stop enterprise Java development framework. Its core is IoC (inversion of control) and AOP (aspect oriented programming). In spring, the objects that form the backbone of the application and are managed by the Spring IoC container are called bean s. B ...

Posted by Charlie9809 on Mon, 03 Jan 2022 11:23:48 +0100

Python learning notes (novice introduction) file operation and time operation

catalogue 4.1 time and date 4.1.1 time module 4.1.2 Sleep function 4.1. 2. Datetime module 4.1.2.1 now() method 4.1. 2.2 strftime (FMT) method 4.2 document operation 4.2. 1 open file 4.2. 2 write file 4.2.2.1 write() method 4.2.2.2 writelines() method 4.2. 3 read file 4.2.3.1 read() method 4.2.3.2 readlines() method 4.2.3.3 wit ...

Posted by jsschmitt on Mon, 03 Jan 2022 08:41:14 +0100

Java parallel program foundation, byte beating, Java interview cool classics

public static void main(String[] args) throws InterruptedException { Thread t1 = new Thread(()->{ while (true) { if (Thread.currentThread().isInterrupted()) { System.out.println("Interrupt!"); break; } ...

Posted by sylesia on Mon, 03 Jan 2022 08:36:51 +0100

binlog format of MySQL log → discussion on the default isolation level of MySQL

Background issues Before talking about binlog, let's review the default isolation level of mainstream relational databases. It's the default isolation level, not the isolation levels of transactions. Don't be mistaken 1. What is the default isolation level of Oracle and SQL Server and MySQL? 2. Why is the default isolation level of MySQL RR? ...

Posted by morph07 on Mon, 03 Jan 2022 07:57:10 +0100