java day 31: thread pool, design mode
java day 31: thread pool, design mode
1. Overview and use of thread pool
A: Thread pool overview
Starting a new thread is expensive because it involves interacting with the operating system.
The use of thread pool can improve performance, especially when a large number of short-lived threads are t ...
Posted by keldorn on Sat, 13 Jun 2020 01:17:37 -0700
Spring event pattern application
I'm the interviewer of Microsoft YaHei: it's 85 years old
Me: Well, 35
Interviewer: that should be very experienced. Let's talk about spring
Me: OK, I've used this for more than 10 years. You can ask me whatever you like
Interviewer: have you ever used events in Spring?
Me: Yes
Interviewer: can you exp ...
Posted by fordyh on Fri, 12 Jun 2020 04:11:34 -0700
Note: Chapter 9 of High Performance Python
This chapter is about parallel computing, accounting for more than 60 pages. After reading it, we have to straighten out and digest this big lump of things.
1. Using Monte Carlo simulation to estimate pi.
The logic is simple: put the needle in the unit square of the coordinate system, calculate the proportion of the needle falling in the 1 / 4 ...
Posted by dunnsearch on Thu, 11 Jun 2020 20:43:15 -0700
Springboot integrates flowable modeler without login, and queries the user / user group to change to its own system data
Before the flow chart was drawn, tomcat was used to start the flow modeler, but in this way, the data in your system cannot be queried when assigning task users / user groups. So now we need to integrate the flowable modeler into the project.
I searched a lot of articles before, but I didn't feel very clear. Maybe it was because I just got ...
Posted by garygay on Tue, 09 Jun 2020 00:30:35 -0700
Start using Elasticsearch: Learn how to search
This article is from https://blog.csdn.net/UbuntuTouch/article/details/99546568 , with amendments and deletions.
In the previous article, we have described how to use the REST interface to create index es, documents, and actions in ES.In today's article, we'll show you how to use ES to search for our data.ES is a near real-time search.Let's c ...
Posted by evmace on Tue, 02 Jun 2020 03:08:05 -0700
Java Dynamic agent and static agent and what it can do for us
I believe that we have more or less come into contact with Java's agent mode on the Internet and in our daily study and work. We often hear some terms about static agent and dynamic agent. But do we really know that? At least when I interviewed, I found that many people were not very clear.
First of all, agents are easy to understand, that is, ...
Posted by -Karl- on Sun, 31 May 2020 03:05:13 -0700
Full version template project practice [practice]
Today, I'm going to bring you the actual battle of template project. Let's have a look at the renderings
explain:
Click the picture to jump to the corresponding details page
Data:
movies = [
{
'id': '34532',
'title': u'Fat action team',
'thumbnail': u'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p ...
Posted by phpfolk2003 on Wed, 27 May 2020 02:25:26 -0700
IView (view UI) multi graph upload
@Official documents
1. Install iview2.0
cnpm install view-design --save
2. Introduce the ViewUI. Part of the note is @Last article For example, in this article, the version upgrade must be commented out, but uninstall does not
// import iView from 'iview';
// import 'iview/dist/styles/iview.css';
import ViewUI from 'view-design';
im ...
Posted by don117 on Sun, 24 May 2020 08:39:00 -0700
Junit4 architecture design series: Runner.run() and Statement
Overall##
Series entrance:
Junit4 architecture design series (1): Request, ClassRequest and runner builder
In the previous article, we have basically sorted out the Flow of Junit4 execution Case in general: Request -> ClassRequest.getRunner() -> AllDefaultPossibilitiesBuilder.safeRunnerForClass() -> runner.run()
And introduced the ...
Posted by Online Connect on Sat, 23 May 2020 23:13:32 -0700
Architecture design | interface idempotence principle, anti duplicate submission Token management
Source code: GitHub point here || GitEE point here
1, The concept of idempotent
1. An introduction to idempotent
The characteristic of an idempotent operation in programming is that the influence of any multiple execution is the same as that of one execution. That is to say, one or more requests for a resource have the same effect.
2. HTTP req ...
Posted by careym1989 on Fri, 22 May 2020 06:59:12 -0700