Principle analysis of AbstractQueuedSynchronizer

Source of this article Principle analysis of AbstractQueuedSynchronizerReprint please specify Abstract queuedsynchronizer, AQS for short, is a common dependency framework for most of Java, such as Lock, Semaphore, CountDownLatch, etc., which implements blocking locks that rely on FIFO waiting queues. Reading its code principle is helpful for us ...

Posted by bobthebuilder on Tue, 16 Jun 2020 07:01:11 +0200

The first part of Spring source code is open and complete! How is the configuration file loaded?

Last week, I put my words out. It seems that all my friends are looking forward to it. In fact, SongGe can't wait to start a new series. However, the current Spring Security series is still in the process of serialization and has not been completed yet. It's a series of events. Keep your spirits up, and then you'll lose three times. It must be ...

Posted by one on Mon, 15 Jun 2020 05:11:04 +0200

Java records of strong reference, soft reference, weak reference and virtual reference (Practical)

First of all, don't be afraid of some nouns. In fact, they are all reasonable things. The reference itself is well understood. The reference type data stores the memory address of the actual object. When garbage collection, it depends on whether the object has a reference. Java does not need developers to allocate memory and free memory, but it ...

Posted by rdawson on Sun, 14 Jun 2020 09:58:30 +0200

TCP - packet sticking / unpacking

TCP sticking / unpacking TCP is a "flow" protocol. The so-called flow is a string of data without boundary. You can think of the running water in the river. They are connected in one piece and there is no boundary between them. The bottom layer of TCP does not know the specific meaning of th ...

Posted by anjanesh on Sun, 14 Jun 2020 09:30:18 +0200

Week14 cat sleeping problem

Title: As we all know, TT has a magic meow at home. This meow is very sleepy. There is no day or night when you sleep. Meow meow can sleep many times a day!! Sleep as long as you want Meow sleep time is continuous, that is, once meow starts to sleep, it can not be disturbed, otherwise meow will bite peo ...

Posted by rline101 on Sun, 14 Jun 2020 05:38:52 +0200

Python crawler example: News total crawling

Python crawler example: News total crawling preface analysis Web page parsing Stock data source Proxy IP code implementation summary preface Some time ago, due to the needs of tasks, it was necessary to climb the number of news of Shanghai Stock Exchange 50 index component stocks on certain da ...

Posted by HavokDelta6 on Thu, 11 Jun 2020 07:10:42 +0200

chrome + IDM + oil monkey plug-in to realize high-speed download of large files on Baidu online disk

chrome + IDM + oil monkey plug-in realizes the high-speed download of large files on Baidu online disk; this is a very mature technology, with fast download speed and no need to worry about being sealed 1. Download chrome. If you skip it directly, you don't need to read it 2. Download idm software ...

Posted by SquirrelJ on Sun, 07 Jun 2020 11:06:41 +0200

Spring IOC source reading notes (10)

After analyzing the loading of BeanFactory containers, let's take a look at the loading of ApplicationContext, a more complex container that we currently use. Compared with BeanFactory, ApplicationContext has the following differences: 1. Inherit MessageSource and provide international standard access p ...

Posted by MrAdam on Fri, 05 Jun 2020 07:08:29 +0200

C#Simple Getting Started - Suitable for Beginners

First C#Program using System; namespace HelloWorldApplication // Namespace Declarations { /* Class name is HelloWorld */ class HelloWorld // A class { /* main function */ static void Main(string[] args) { /* My First C#Program */ Console.WriteLine("Hello World!"); Co ...

Posted by roneill on Sat, 30 May 2020 18:44:39 +0200

This problem Maven relies on, you dare say you haven't met

If Maven's dependency is not handled properly, it often leads to some problems, which is very annoying. Today I'd like to share with you a dependency related problem that you may have encountered before. Problem background There is an ES search project, which is still in good condition at the beginning. After a while, it is found that the start ...

Posted by foxy69 on Sat, 30 May 2020 11:57:00 +0200