[Handwritten Source-Design Mode 19]-Memo Mode-If there is a moon box in the glory of the King

1: Theme Disassembly 1 Basic Introduction If there is a treasure box of moonlight in the glory of the King (3) Advantages and disadvantages of memo mode (4) Scenarios applicable Application examples Summary 2: Basic Introduction Memo mode: Capture the internal state of an object without destroyUTF-8...

Posted by seany123 on Mon, 20 Sep 2021 17:46:36 +0530

docker study note two

4. Common docker commands 4.1 File/Directory Operations Instructions vi #Edit or create a file cat #view file contents ls #View Directory cd #Jump Position cd ~ #Jump to the root directory exit #Sign out touch #Create a file mkdir -p #Create directory, if available, without error . #current dirUTF-8...

Posted by Mysticated on Wed, 22 Sep 2021 23:45:23 +0530

SFB (short forwards branch) learning and analysis in SonicBoom RISC-V CPU

1 Purpose Recently, I studied the Sonicboom riscv CPU of Berkeley, which internally optimized the SFB (short forwards branch) program, which can improve the IPC by 1.7 times under some program sequences; However, the processing is complex. Instead of centralized processing in one module, it is UTF-8...

Posted by raidon on Sat, 09 Oct 2021 06:54:33 +0530

Such a big MySQL bug opened my eyes

A sentry alarm was received this week. The following SQL query timed out. select * from order_info where uid = 5837661 order by id asc limit 1 Execute show create table order_info found that this table is actually indexed CREATE TABLE `order_info` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMUTF-8...

Posted by errorCode30 on Thu, 21 Oct 2021 10:33:07 +0530

It smells good! SpringBoot quickly integrates the monitoring service of SpringBootAdmin console

SpringBootAdmin is a monitoring tool for UI beautifying and encapsulating the actor interface of Spring Boot. It can browse the basic information, detailed Health information, memory information, JVM information, garbage collection information, various configuration information (such as data soUTF-8...

Posted by dmIllithid on Fri, 22 Oct 2021 10:54:42 +0530

Chapter 7 Linux file search

1. File search Find eligible files on the file system File search: locate, find Non real time lookup (database lookup): locateReal time lookup: find 1.1 locate locate queries the pre built file index database / var/lib/mlocate/mlocate.db on the system The index is built automatically when the sUTF-8...

Posted by Eddie Fisher on Sun, 24 Oct 2021 16:36:03 +0530

[gem5] isa DSL syntax

The original tutorial is: https://www.gem5.org/documentation/general_docs/architecture_support/isa_parser/ Supplement and modify the original tutorial based on gem5(v20.0.0.1) source code. ISA Parser The syntax part of ISA DSL of gem5 can be found in Isa_ The of parser.py starts with p_ Found iUTF-8...

Posted by 1bigbear on Wed, 27 Oct 2021 09:41:41 +0530

This is the elegant use of the responsibility chain model

1. Use the responsibility chain mode to design hot plug permission control This article is excerpted from Tan Yongde (Tom), author of "design patterns should be learned in this way" First, create an entity class Member. public class Member { private String loginName; private String loginPass; pUTF-8...

Posted by XzorZ on Wed, 27 Oct 2021 15:04:08 +0530

Interview questions series: the difference between Overload and Override. Can overloaded methods be distinguished according to the return type

Interview question: the difference between Overload and Override. Can overloaded methods be distinguished according to the return type Interviewer survey point conjecture This question is purely a test of basic theoretical knowledge, which does not have much guiding significance for the actual UTF-8...

Posted by Visualant on Thu, 28 Oct 2021 16:24:59 +0530

Redis core principle and practice -- Analysis of redis startup process

Redis server is responsible for receiving and processing user requests and providing services for users. The format of the Redis server startup command is as follows: redis-server [ configfile ] [ options ] The configfile parameter specifies the configuration file. The options parameter specifiUTF-8...

Posted by Hodo on Thu, 28 Oct 2021 16:47:27 +0530