c language version remove source code comments
Note the following points when removing comments in the code
First, comments have multiple or single line comments from "/ *" to "* /"
Second, there is a single line comment of "/ /"
Also note that characters in double and single quotation marks are not included in comments
So I designe ...
Added by PHPeter on Thu, 21 May 2020 17:44:02 +0300
Research on WeChat Red Packet Algorithm
Background: Before the New Year relatives were grabbing red envelopes, they all wanted to grab the first one, saying that the sooner the grabbing, the bigger the grabbing.In fact, this must be incorrect. WeChat should have generated all the red envelopes when you sent the red envelopes. So you said that no matter how many people grab them, it s ...
Added by Roble on Thu, 21 May 2020 06:48:23 +0300
Fully parsing different python threads
thread
The scheduling unit of CPU is simply the end executor in the program, which is equivalent to the position of younger brother.
Some people say that the thread in python is a chicken rib because of GIL, but it is not a chicken rib. After all, it works well when performing io operations, but it is unsatisfactory when performing calculation ...
Added by greenhorn666 on Wed, 20 May 2020 10:16:40 +0300
Introduction to Connection-Control for MySQL
In Oracle and SQL Server databases, you can set up some complex account password policies, such as locking an account more than N times after a failed login, so can you do the same in MySQL?The answer is that MySQL has similar capabilities, except in MySQL it delays the response time when its login fails beyond the threshold, instead of locking ...
Added by marco839 on Tue, 19 May 2020 20:23:28 +0300
Solution to the problem of merging stones
[Title Description]
N piles of stones are placed in rows on a playground. Now we will combine the stones into a pile in order. It is stipulated that only two adjacent piles of stones can be selected to merge into a new pile at a time, and the number of new piles of stones shall be recorded as the score of this combination.
Calculate the mini ...
Added by Amgine on Sun, 17 May 2020 17:59:59 +0300
The fifth experiment report of operating system memory management
0 personal information
Zhang yingzi
201821121038
Calculation 1812
1 purpose of the experiment
Learn more about memory management through programming.
2 experiment content
On the server, we use Vim to write a program: simulate a memory management algorithm, test the result, and explain the running result.
3. Experiment report
Three po ...
Added by bryansu on Sun, 17 May 2020 11:48:25 +0300
Another way to write Spring MVC interface
1. Preface
In general, the paradigm for writing Spring MVC interface is as follows:
@RestController
@RequestMapping("/v1/userinfo")
public class UserInfoController {
@GetMapping("/foo")
public String foo() {
return "felord.cn";
}
}
Today, I'm going to use the new Functional Endpoints introduced by Spring 5 to play. Sp ...
Added by mynameisbob on Fri, 15 May 2020 07:48:02 +0300
ThreadPoolExecutor Source Analysis-execute() Method
Preface
The previous two articles paved the way for analyzing thread pool sources
Bit Operations in the Java ThreadPoolExecutor ThreadPool
ThreadPoolExecutor Source Analysis Foundation - How ThreadPool works
Look back at what you've said before (you need to know it beforehand):
Several states of thread pool RUNNING, SHUTDOWN, etc.
Switching ...
Added by Zack on Thu, 14 May 2020 19:13:18 +0300
Illustrate IO models and related technologies for Linux
Blocking IO Model (Blocking I/O)
The Linux kernel initially provides read and write blocking operations.
When a client connects, a corresponding file descriptor (0 standard input, 1 standard output, 2 standard error output) is generated in the file descriptor directory of the corresponding process (/proc/process number/fd), such as FD 8, FD 9 ...
Added by eulalyn09 on Sun, 10 May 2020 11:54:46 +0300
18 examples take you to master Java 8 date time processing!
Author: Pang xiansen
https://juejin.im/post/5a795bad6fb9a0634f407ae5
Java 8 introduces a new date time API. In the tutorial, we will learn how to use the new API through some simple examples.
The way Java deals with date, calendar and time has always been criticized by the community. Setting java.util.Date as a variable type and the non thre ...
Added by matthewc on Wed, 06 May 2020 08:54:37 +0300