JAVA learning - multithreading

Multithreading Thread Custom Thread class inherits Thread class Rewrite the run() method and write the thread execution body Create a thread object and call the start() method to start the thread Note: if you call the run() method, there is only one execution path for the main thread, but if you call the start() method, there are multiple exe ...

Added by jcstanley on Mon, 07 Mar 2022 12:55:15 +0200

01Hadoop learning notes - Hadoop cluster construction

1 Introduction 1. What is it Hadoop is an open source software of apache for big data storage and computing. 2. What can I do a big data storage b distributed computing c (computer) resource scheduling 3. Features High performance, low cost, high efficiency and reliability. It is universal and simple to use 4. Version 4.1 open source communi ...

Added by j.bouwers on Mon, 07 Mar 2022 12:52:31 +0200

nsq deployment / delivery / consumption / cluster example

docker pull nsqio/nsqService port and relationshiptopic & channelCluster modePreparationBecause the multi node deployment is realized through docker container on a single machine, if nsqd/nsqadmin container wants to communicate with nsqlookup, it needs to access the service port exposed by nsqlookup on the host machine. Therefore, when crea ...

Added by mcirl2 on Mon, 07 Mar 2022 12:39:02 +0200

Monotone queue optimization for multiple knapsack problems

Monotone queue optimization for multiple knapsack problems Warm tips: it's better to eat dessert first and then enter the dinner~ 0-1 backpack problem (dessert) https://www.acwing.com/problem/content/2/ Simple solution #include <iostream> using namespace std; const int N = 1010; int n, m; //n number of items m maximum capacit ...

Added by hardyvoje on Mon, 07 Mar 2022 12:37:59 +0200

The use of MaterialButton is explained in detail, saying goodbye to shape and selector

effect preface Let's take a look at what a MaterialButton is As can be seen from the above figure, MaterialButton is not mysterious, but a subclass of Button. However, after being encapsulated by Google, it is more convenient to use and easy to achieve the expected effect on the basis of conforming to Material Design. use Import materi ...

Added by cstevio on Mon, 07 Mar 2022 12:21:56 +0200

iOS uses Metal to realize filter and dynamic filter

preface Harbeth It is a small part of utilities and extensions on Apple's Metal framework, which is committed to making your Swift GPU code more concise and allowing you to build pipeline prototypes faster. This paper introduces and designs the filter based on GPU, graphics processing and filter making ๐Ÿ‘’๐Ÿ‘’๐Ÿ‘’ Function list ๐ŸŸฃ At present, Met ...

Added by mkr on Mon, 07 Mar 2022 12:16:10 +0200

0-1 knapsack problem, you should know this!

You should know about 01 backpack!This week we officially began to explain the backpack problem!The classic material of knapsack problem is, of course: knapsack nine lectures. In the official account of the public code, the backstage reply: knapsack nine, you can get pdf in the knapsack nine.But to tell the truth, backpack nine is really not fr ...

Added by WebbDawg on Mon, 07 Mar 2022 12:12:42 +0200

Unity dialog process tool development

Question: When developing the guidance module, we will always encounter the character dialogue process. In most cases, the product sends the document of the dialogue process to the program, and then the program is processed into its own readable text data. In a sense, the program and product cause a waste of time. For each change in the later ...

Added by scritpkid on Mon, 07 Mar 2022 12:08:02 +0200

java OpenCV implementation of scanner image tilt correction

First download the opencv resources on the official website Official website address: Releases - OpenCV The download on the official website is slow. You can choose to download on Baidu online disk. The version is 455 Link: https://pan.baidu.com/s/1LADtih8l8nStKwJRIde91Q ย  Extraction code: wx0h Tip: the following methods are only appli ...

Added by jmrothermel on Mon, 07 Mar 2022 12:00:56 +0200

Rolling array of 0-1 knapsack problem!

yesterday Dynamic programming: you should know this about 01 backpack! In, we use two-dimensional dp array to explain 01 knapsack.Today, let's talk about rolling array. In fact, we have used rolling array in the previous topic, that is, reducing two-dimensional dp to one-dimensional dp. Some recording friends expressed confusion at that time.So ...

Added by mickd on Mon, 07 Mar 2022 11:51:25 +0200