Springboot thread pool ThreadPoolTaskExecutor and @ Async

Springboot integrates ThreadPoolTaskExecutor thread pool ThreadPoolExecutor: This is a thread pool execution class implemented by java. Basically, thread pools are created through this classThreadPoolTaskExecutor: This is a thread pool execution class implemented by springboot based on ThreadPoolExecutor In springboot, according to Official d ...

Added by kutte on Fri, 11 Feb 2022 11:34:58 +0200

MySQL 7: MySQL indexing practice

1, Prepare test environment 1.1. Create data table /* Employee table */ CREATE TABLE `emp` ( `id` int(8) NOT NULL AUTO_INCREMENT, `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '', `job` varchar(9) NOT NULL DEFAULT '', `hiredate` date NOT NULL, /* Entry date */ `sal_grade` int(8) NOT NULL, `age` ...

Added by DirtySnipe on Fri, 11 Feb 2022 11:32:23 +0200

iOS auto build command -- xcodebuild

When I came to the company every day, one thing I needed to do every day was to open Xcode, pack ipa and upload it to fir. I do the same thing day after day, month after month, year after year. As an aspiring engineer, this is a problem that must be solved, so I decided to solve the problem automatically. brief introduction xcodebuild is an a ...

Added by ursvmg on Fri, 11 Feb 2022 11:28:35 +0200

Section 20: object oriented design patterns

Object creation review Object direct quantityUsing the new operatorObject.create() method reference resources: Section 3: data type - Object object When we create objects, we usually create a single object. If we need to create multiple objects, there may be a lot of duplicate code. this point resolution ① In the function: this represents ...

Added by larissahn on Fri, 11 Feb 2022 11:26:16 +0200

Interpretation of zlmedia kit server source code -- event loop

1: Event loop pool class Event loop pool is a singleton class that manages EventPoller 1. EventPollerPool constructor EventPollerPool::EventPollerPool() { auto size = addPoller("event poller", s_pool_size, ThreadPool::PRIORITY_HIGHEST, true); InfoL << "establish EventPoller number:" << size; } 2: Adding EventPoller to ...

Added by lukeurtnowski on Fri, 11 Feb 2022 11:25:02 +0200

Deep first search (DFS), read this article is enough.

1, Definition: The idea of depth first search is very similar to the pre order traversal of the tree. The following is the definition on Baidu Encyclopedia: The method of depth first traversing the graph is to start from a vertex v in the graph: (1) Access vertex v; (2) Starting from the unreachable adjacency points of v, the depth of ...

Added by Ali_baba on Fri, 11 Feb 2022 11:22:00 +0200

Some knowledge points of ffmpeg learning diary 8-YUV

Some knowledge points of ffmpeg learning diary 8-YUV There are many articles about yuv. I won't introduce the relevant concepts found here. I'll record some points here. As a novice, I've pondered for a long time to understand some points. Storage read-write problem of YUV420P YUV data is stored in the frame structure. The three kinds of YUV ...

Added by ivytony on Fri, 11 Feb 2022 11:20:22 +0200

Vue2 dynamic component slot routing

Part I knowledge review:What are Vue components?What stages will Vue components go through from creation to destruction?How do Vue components share data?Summary of this articleHow to use dynamic components?How to use slots to reserve custom content for users?Use of Vue router in SPA project under Vue framework1, Dynamic component1. What is a dy ...

Added by bmarinho on Fri, 11 Feb 2022 11:12:32 +0200

Introduce a website for playing strange and upgrading Python, which combines teaching with fun. It belongs to yes!

This is an interesting website for learning python, which exercises the level of Python in the form of level. There are 33 levels in total. Each level needs to use Python knowledge to solve the problem, find the answer, and then enter the next level. It is a great test of the comprehensive mastery of Python. For example, some people need regula ...

Added by cauri on Fri, 11 Feb 2022 11:02:59 +0200

Graph analysis (coduck)

catalogue Concept of graph Storage mode of graph adjacency matrix Title: adjacency matrix representation of Graphs Adjacency table Title: the forward star of a graph represents 1 ergodic Depth first search Breadth first search Shortest path algorithm Dijkstra algorithm Title: Party Bellman Ford algorithm SPFA algorithm Title: ma ...

Added by siwelis on Fri, 11 Feb 2022 11:00:02 +0200