Talk about multithreading

I. progress Concept: A process is a running program, which represents the memory area occupied by the program. For example: 360 is a program, and there are many processes running when 360 is running, as shown below. Characteristic: Independence: a process is an independent entity in the sy ...

Posted by wpsd2006 on Sun, 19 Jan 2020 00:37:14 -0800

throw/throws keyword and custom exception in Java

throw Throw is used to throw objects of specific exception classes, generally used in method bodies. When to use: throw an exception object to remind the programmer when the written code does not meet certain conditions and the program cannot run. Python like raise public class Student { private int ...

Posted by webpoet on Sun, 19 Jan 2020 00:05:40 -0800

C++-Record09 -- return value of function as reference

Catalog Return stack variable Return global variable Return static variable Overall code Return stack variable The following three functions are set to different return types. Return a value, a reference and a pointer respectively: int getAA1() { int a ; a = 10; return a; } //Return a its ...

Posted by flamtech on Sat, 18 Jan 2020 21:24:22 -0800

Machine Learning Andrew Ng -5. Octave Tutrial (Matlab)

5.1 Basic operations 5.2 Moving data around 5.3 Computing on data 5.4 Plotting data 5.5 For while if statement and functions 5.6 Vectorization After reading the first two lessons, I think matlab seems to be the same as octave, so I plan to use matlab to learn the fifth lesson basic operation ?? ...

Posted by ponsho on Sat, 18 Jan 2020 10:07:55 -0800

Talk about handleRegularMessage of artemis ClientConsumer

order This paper mainly studies handleRegularMessage of artemis ClientConsumer handleRegularMessage activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java public final class ClientConsumerImpl implements ClientConsumerInternal { //...... private final PriorityLinked ...

Posted by wafawj on Sat, 18 Jan 2020 07:50:51 -0800

Quick union algorithm for dynamic connectivity

The idea of quick union is that if the root ID of object P and the root ID of object q are equal, then p and q are connected. To connect object p and object q (it is known that the two objects are not connected), set the value of root ID of p to the value of root ID of q, so that the two tree structures of p and q will be merged Algorithm s ...

Posted by websiteguy on Sat, 18 Jan 2020 06:59:08 -0800

Javascript function review + built in objects

Learn some video notes before sorting them out Introduce var str=parseInt(prompt("Please enter a number")); console.log(str); Why is the result NaN??? No conversion succeeded, indicating that there is a problem with prompt("please enter a number") var str=prompt("Please enter a number ...

Posted by Joost on Sat, 18 Jan 2020 04:18:11 -0800

java auto loading and unpacking

title: "java auto unpacking" tags: Java The process of encapsulating a basic data type into an object is called boxing, whereas the process of converting a wrapper class corresponding to a basic data type into an object is called unboxing; Differences between basic data types and other ...

Posted by ksb24930 on Sat, 18 Jan 2020 04:16:07 -0800

centos7 mounts the new hard disk and modifies the storage path of mariadb

Environment CentOS7.4 mariadb 5.5 In principle, all mariadb installed from yum can be used Because the paths of / var/lib/mysql and / etc/my.cnf are the same The reason for this operation is that zabbix's history problem log has filled the disk, so you can only add a new hard disk and change the mysql storage path ------------------------- ...

Posted by br on Fri, 17 Jan 2020 23:53:23 -0800

Sharding sphere version 4.0.0-rc1 is divided into annual tables (later optimization)

1. Sharding sphere version 4.0.0-rc1 is divided into annual tables (to be optimized later) 1.1. overview As for the tables of LogShardingAlgorithm in the previous article, I used to initialize them when I called for the first time. Although this can realize the function, I would use this if judgment every time I called. Although the performance ...

Posted by nubby on Fri, 17 Jan 2020 22:01:28 -0800