The art of multiprocessor programming - 3. Spin lock and contention

This series is the reading notes of the art of multiprocessor programming. It is understood and implemented on the basis of the original book and combined with the code of OpenJDK 11 or above. And share some personal information with those who want to have a deeper understanding according to their personal data search and understanding experien ...

Posted by zypher11 on Fri, 05 Nov 2021 20:54:01 -0700

Fuse principle and implementation Golang version

Dependency between services is very common in microservices. For example, the comment service depends on the audit service, and the audit service depends on the anti spam service. When the comment service calls the audit service, the audit service calls the anti spam service, and the anti spam service times out. Because the audit service depend ...

Posted by rekha on Fri, 05 Nov 2021 20:48:57 -0700

1: Introduction to logistic regression

Logistic Regression is a classification model in machine learning. Logistic Regression is a classification algorithm. Although the name contains regression, it has a certain relationship with regression. Because the algorithm is simple and efficient, it is widely used in practice. 1 application scenario of logistic regression Advertising click ...

Posted by WendyLady on Fri, 05 Nov 2021 20:23:27 -0700

Timer timer use

1, Timer timer basic usage Timer timer = new Timer(); timer.schedule(TimerTask, Date);, The task needs to be encapsulated with TimerTask, and the run method in TimerTask is rewrittenTimer timer = new Timer(boolean);, Passing a value of true indicates that the timer thread is a daemon thread, and the end of the main thread follows the end. Th ...

Posted by redtux on Fri, 05 Nov 2021 20:18:32 -0700

Crawler series: storing media files

The last issue explained: Use APIThis issue of crawler series mainly explains how to store and how to store data after the crawler collects data.Although it is interesting to display the results on the command line, as the data increases and needs to be analyzed, printing the data to the command line is not the way. In order to use most web cra ...

Posted by peter11 on Fri, 05 Nov 2021 20:03:32 -0700

[Java] understanding and implementation through Java -- sequence table and single chain table

🍉 Linear table A linear list is a finite sequence of n data elements with the same characteristics. Linear table is a data structure widely used in practice. Common linear tables: sequential table, linked list, stack, queue, string A linear table is logically a linear structure, that is, a continuous straight line. However, the physi ...

Posted by gljaber on Fri, 05 Nov 2021 19:57:54 -0700

R language BUGS sequence Monte Carlo SMC, Markov transformation random volatility SV model, particle filter, METROPOLIS HASTINGS time series analysis

Original link: http://tecdat.cn/?p=24162In this example, we consider Markov transformation stochastic volatility model.statistical modelLet yt be the dependent variable and xt be the unobserved logarithmic volatility of yt. For t ≤ tmax, the stochastic volatility model is defined as followsThe state variable ct follows a two state Markov pro ...

Posted by TripleDES on Fri, 05 Nov 2021 19:32:04 -0700

< 2021SC@SDUSC > netty use -- implementation of simple chat room

2021SC@SDUSC preface In the initial use of the previous blog netty, we simply wrote the code between the client and the server to realize two-way communication. This time, we made some improvements on the basis of the last code and preliminarily realized the function of chat room. 1, Server 1,Server The Server class itself has not chang ...

Posted by bughunter2 on Fri, 05 Nov 2021 19:17:07 -0700

Kubernetes(k8s) deploy redis cluster cluster

Redis Cluster provides a method to run redis installation, in which data   Automatically partition between multiple redis nodes. Redis Cluster also provides a certain degree of availability during partitioning, which is actually the ability to continue operation when some nodes fail or fail to communicate. However, if a major failure occur ...

Posted by freeheader on Fri, 05 Nov 2021 18:52:27 -0700

Machine learning -- linear discriminant criterion (LDA) and linear classification algorithm (SVM)

1, Introduction to LDA and SVM Linear Discriminant Analysis (LDA) is a classical supervised data dimensionality reduction method. The main idea of LDA is to project the data in a high-dimensional space into a low-dimensional space, and after the projection, it is necessary to ensure that the intra class variance of each category is small a ...

Posted by catalin.1975 on Fri, 05 Nov 2021 18:35:04 -0700