Chapter 13: concurrent deadlock and enterprise solutions (deadlock, livelock, starvation)

1. What is a deadlock? What's the harm? 1.1 what is deadlock? Occurs in concurrency [mutually exclusive]: when two (or more) threads (or processes) hold each other's resources required by each other, but do not actively release them, all of them can't move forward, resulting in endless blocking o ...

Posted by ollmorris on Mon, 29 Jun 2020 08:23:19 +0200

Aop Series III (agent) of spring source sharing

Overall structure For spring AOP Proxy objects, the main task is to create a ProxyFactory, and then create AopProxyFactory to create AopProxy, and then use AopProxy to create the corresponding Proxy. The method call in the Proxy class Proxy created is to call MethodInvocation, which consists of Method ...

Posted by shiggins on Sun, 28 Jun 2020 06:22:28 +0200

One article tells you how much CPU branch prediction affects performance

originate stackoverflow Last question Why it is faster to deal with an ordered array than to deal with an array without it , there are some discussions in the original text. Let's first reproduce the results and then explain why! We have the following two sections of code. The code looks similar, but in fact, the logic is the same. They count t ...

Posted by ray-solomon on Thu, 25 Jun 2020 14:28:53 +0200

Spring usage - AOP

1, What is the role of AOP Through AOP, we can isolate all parts of the business logic, so as to reduce the coupling between various modules. At the same time, we can add new functions to the backbone functions without modifying the source code Underlying principle Dynamic proxy used Dynamic agen ...

Posted by skeener on Sun, 21 Jun 2020 08:45:21 +0200

Solution to the problem that PhpStorm64 cannot be started

Solution to the problem that PhpStorm64 cannot be started It has been several years since CSDN was used, but I have never tried to write my own content, just as IDE problems cannot be solved, I write blog ๐Ÿ˜… Accumulate my poor writing experience. As a phper, PhpStorm IDE is undoubtedly the most powerfu ...

Posted by sneha1234 on Sat, 20 Jun 2020 07:46:42 +0200

Learn Java proxy mode, this one is enough

This article will explain the agent mode through its concept, characteristics, and finally realize the use scenarios of each agent mode through coding. What is agent mode Agent pattern is a programming design pattern in Java language. There are two important roles: the principal class and the agent class. The agent class can call the delegate c ...

Posted by Chris.P on Fri, 19 Jun 2020 11:36:09 +0200

java basic review common classes

I java.lang Class in package does not need to import package 1. Features: ใ€€ใ€€ java.lang Package is the core of Java language, which provides the basic classes in Java. Including basic Object Class, Class class, String Class, basic type wrapper Class, basic math Class and other basic classes. 2. 8 basic types of initialization default va ...

Posted by manamino on Thu, 18 Jun 2020 06:01:02 +0200

LinkedList is 1000 times slower than ArrayList? (dynamic graph + performance evaluation)

Array and linked list are two kinds of data structures commonly used in the program, and they are also one of the interview questions often tested in the interview. However, for many people, they just vaguely remember the difference between them. Maybe they still don't remember it right. And every time they come for an interview, they have to r ...

Posted by nomis on Mon, 15 Jun 2020 07:07:42 +0200

2, End of spring AOP (in supplement...)

1, Basic source code analysis 1. Find the entrance Spring's AOP is started by accessing the BeanPostProcessor postprocessor 2.BeanPostProcessor BeanPostProcessor is embodied in the doCreateBean of IOC source code analysis, the latter sentence of populateBean Object exposedObject = bean; try { po ...

Posted by ghostrider1 on Sat, 13 Jun 2020 07:56:32 +0200

Java Functional Interface--Abstract Method Interface

1 Functional Interface Functional interfaces in Java refer to interfaces that have one and only one abstract method Functional interfaces, that is, interfaces for functional programming scenarios; while functional programming in Java is represented by Lambda, so functional interfaces are interfaces th ...

Posted by chris_s_22 on Sat, 13 Jun 2020 03:57:12 +0200