[architect interview - JUC concurrent programming - 9] - thread pool
1: Introduction to thread pool
Using thread pool, you can reuse threads and control the total number of threads. If the thread pool is not used, a new thread should be opened for each task. The overhead of repeatedly creating threads is large, and too many threads will occupy too much memory.
This is too expensive. We want to have a fixed num ...
Posted by hairytea on Thu, 04 Nov 2021 16:05:52 -0700
Preventing memory overflow of jdbc underlying driver loading data mechanism -- Mysql
1. Key objects
The connection object -- com.mysql.jdbc.JDBC4Connection contains all configuration parameters about mysql. The setting method is set in the form of parameters attached to the url
preparedStatement object -- com.mysql.jdbc.ServerPreparedStatement
2. Data result set reading method
There are three types:
One is in the form ...
Posted by WolfRage on Wed, 03 Nov 2021 20:06:46 -0700
Qt live video software -- project practice (Day1)
1, Project requirements
Don't write it first. We'll add it when we're finished
2, Design ideas
It's late today. Just make a code record. It's all on paper and will be added later
3, Day 1 project diary
1. Today's summary:
I wrote half a server today, Main functions 1) You can create a server using Tcp protocol, define the port yourself, a ...
Posted by praeses on Wed, 03 Nov 2021 16:06:11 -0700
unix commands often used in work
1, Background
I have accumulated a lot of commands related to the server in my work, which are commonly used. Record and share them with you. I hope it will be helpful.
2, Common commands
1. vim enters the file, exits the editing mode, executes DD to delete a whole line, and 20dd to delete 20 ...
Posted by wisewood on Wed, 03 Nov 2021 12:14:16 -0700
Linux Process Management
Process and thread definition
A process is a program in execution (the object code is stored on the media). A process includes not only the running program, but also some other resources, such as open files, suspended signals, internal kernel data, processor status, etc. An execution thread is projected in a section of memory, which also c ...
Posted by Scorptique on Tue, 02 Nov 2021 13:15:11 -0700
Record the experience of configuring the server for a big innovation project
This is an article on configuring the server environment (for Python projects) (nanny tutorial)
I can only say that configuring the server is really too simple. Just have a hand
1: Prepare the necessary documents
The documents are as follows:
DockerfileProject coderequirements.txt
As shown in the figure:
You need to create these three ...
Posted by whisher06 on Sun, 31 Oct 2021 09:53:33 -0700
[Linux high concurrency server] producer and consumer model
[Linux high concurrency server] producer and consumer model
Article overview
This article is a personal note of Niuke C + + project course: Linux high concurrency server, which records some knowledge points of producer and consumer model
Author information
NEFU 2020 zsl ID: fishingrod / fishing rod Email: 851892190@qq.com You are welcome ...
Posted by findshorty on Sun, 31 Oct 2021 00:48:23 -0700
MySQL incremental backup and recovery
introduction
Full backup is to back up all data contents. There are a lot of duplicate data in the backup data, and the time of full backup and recovery is very long. The solution to the problem of full backup is to use incremental backup. Incremental backup is to back up the files or contents added or changed since the last backup.
1 ...
Posted by pristanski on Sat, 30 Oct 2021 04:36:06 -0700
Detailed explanation of the most detailed Nginx configuration in history
Nginx common functions
1. Http proxy, reverse proxy:
As one of the most commonly used functions of web server, especially reverse proxy. When working as a reverse proxy, nginx provides stable performance and flexible forwarding function. Nginx can adopt different forwarding strategies according to different regular matching, such as file ser ...
Posted by fiona on Sat, 30 Oct 2021 02:16:19 -0700
Linux command artifact: lsof
lsof is system management/ security Uber tools. Call this tool lsof a real name, because it means "lists open files". One thing to remember is that in Unix, everything (including network sockets) is a file.
Interestingly, lsof is also one of the Linux/Unix commands with the most switches. It has so many switches, and it has many opti ...
Posted by joesaddigh on Thu, 28 Oct 2021 21:29:15 -0700