Analyzing Handler mechanism from source code

Handler is a technology that must be used in Android development. It is also very simple to use. Rewrite handler's handleMessage method in the main thread and send messages through handler's sendMessage() method in the sub thread. The Handler mechanism can be well understood through this figure. There are several roles: ActivityThread, Handler ...

Posted by tullmejs on Wed, 16 Feb 2022 17:56:29 +0100

Servlet quick start

Servlet quick start Introduction to Servlet Servlet: short for Server Applet, it is the program (code, function implementation) of the server, which can interactively process the request sent by the client to the server and complete the operation response. Tracing back to the origin, Servlet is a technology of sun company to develop dynamic w ...

Posted by smithmr8 on Wed, 16 Feb 2022 16:03:38 +0100

How is the condition in AQS implemented

Function of condition In fact, there are many usage scenarios of condition, which can be used in concurrent scenarios involving condition judgment, such as: Judge whether the queue is full or empty in the ArrayBlockingQueue of the blocking queueBlock and wake up all threads in CyclicBarrierJudgment of blocking access queue data in DelayQueueC ...

Posted by umguy on Wed, 16 Feb 2022 15:12:48 +0100

Medical management system based on SSM (Java graduation project)

[Chen Xi should work hard]: hello, I'm Chen Xi. I'm glad you can read it. My nickname is that I hope I can constantly improve and move forward towards excellent programmers! The blog comes from the summary of problems encountered in the project and programming. Occasionally, there will be reading and sharing. I will update the summary of relev ...

Posted by scheinarts on Wed, 16 Feb 2022 15:11:02 +0100

Variable parameters, immutable set, Stream flow (get flow, intermediate method, termination method, collection method), landlords case

catalogue Variable parameter Create immutable collection Stream stream Common generation methods of Stream Stream intermediate operation method Other common intermediate methods Stream termination operation method Collection method Collection method - toList and toSet Collection method - toMap Extended case landlords Extended case: ...

Posted by brash on Wed, 16 Feb 2022 15:08:03 +0100

Using docker to build Hadoop cluster

I Environmental Science: 1.Ubuntu20 2.Hadoop3.1.4 3.Jdk1.8_301 II Specific steps Pull the latest version of ubuntu imageUse mount to transfer jdk,hadoop and other installation packages to the mount directory through xftp or using the command line scp command.Enter the ubuntu image container docker exec -it container id /bin/bashUpdate a ...

Posted by The_Assistant on Wed, 16 Feb 2022 14:32:26 +0100

Deep understanding of JVM -- class loading and bytecode Technology

Deep understanding of JVM (VII) -- class loading and bytecode Technology (I) ](https://nyimapicture.oss-cn-beijing.aliyuncs.com/img/20200608151300.png) 1. Class file structure Get first class bytecode file method: Write java code in the text document (the file name is consistent with the class name), and change the file type to javaIn ...

Posted by anujgarg on Wed, 16 Feb 2022 13:12:01 +0100

Concurrent programming 5: detailed explanation of the underlying principle of java Concurrent thread pool and source code analysis

Detailed explanation of the underlying principle and source code analysis of java Concurrent thread pool Performance comparison between thread and thread pool The first part analyzes Java threads. Now let's analyze the java thread pool. Before analyzing the thread pool, let's think about whether the more threads we create, the better. Obv ...

Posted by Jay2391 on Wed, 16 Feb 2022 12:01:10 +0100

30 - design principles and design patterns

Design principles and design patterns Common design principles---------------------------------------- Software development process: requirements analysis document, outline design document, detailed design document, coding and testing, installation and debugging, maintenance and upgrading Common design principles---------------------------- ...

Posted by fitchn on Wed, 16 Feb 2022 11:42:02 +0100

Sequence traversal of binary tree

1. Sequence traversal Sequence traverses a binary tree. It is to traverse the binary tree layer by layer from left to right. In order to realize sequence traversal, we need to use an auxiliary data structure, namely queue. Queue first in first out conforms to the logic of layer by layer traversal, while stack first in last out is suitab ...

Posted by matt_4013 on Wed, 16 Feb 2022 11:09:54 +0100