Detailed nginx data receiving process
In nginx Event Driven Process Details Based on epoll Model As we mentioned, epoll calls back the ngx_event_accept() method after triggering the accept event.This approach does two main things:
Get the client connection handle to which accept is going, and initialize a ngx_connection_t structure to characterize the connection;
Check that the ne ...
Posted by SeaJones on Mon, 09 Mar 2020 17:53:00 -0700
Cloud computing - MySql advanced: configure multiple instances of MySql
Case 1: configure MySQL multiple instances
1.1 problem
On the host 192.168.4.56, configure the first MySQL instance
Instance name mysql1, port 3307
Database directory / data3307, PID file mysql1.pid
Error log mysql1.err
On the host 192.168.4.56, configure the second MySQL instance
Instance name mys ...
Posted by pootergeist on Sat, 07 Mar 2020 07:04:48 -0800
NIO - Selector in Java network programming
Preface
I have a general understanding of NIO operation and three componentsJava network programming (4) NIO understanding and three components of NIO
And learn in detail: Buffer and ChannelJava network programming (5) NIO - Buffer detailsJava network programming (6) NIO - Channel details
Next, comple ...
Posted by ulenie on Fri, 06 Mar 2020 22:39:16 -0800
Android Application Startup Process - Process Creation
app process creation
As you can see in this sketch, Launcher's click on the icon to start the process involves three roles.
Launcher is the Initiate Request Process (caller), AMS receives Launcher's request and processes it. If the Activity process to be started does not exist, connect to Zygote through a local socket and initiate a request to ...
Posted by drath on Fri, 06 Mar 2020 09:07:22 -0800
SpringBoot + thrift + apache.commons.pool2: build a thrift client connection pool on the springboot project
Catalog
I. Preface
2, thrift server
3, thrift client connection pool
Introducing pom dependency
Objects that need to be pooled
Object factory
Object pool
Configuration class of object pool
Spring configuration class
Four, use
Five, summary
I. Preface
Because of the need of work, when using thr ...
Posted by vickyjackson on Thu, 05 Mar 2020 21:58:27 -0800
Non blocking connect
In the socket blocking mode, the connect function will not return until there is a clear result (or the connection succeeds or the connection fails). If the server address is "far away" and the connection speed is slow, the connect function may cause the program to block in the connect process ...
Posted by romic on Tue, 03 Mar 2020 23:43:35 -0800
Improvement of epoll--working mode
Horizontal Trigger Mode--This is the default mode (as described in the previous article)
Edge Blocking Trigger Mode
Edge Non-Blocking Mode--Highest Efficiency
Let's start with a need:
For one client (interprocess pipeline communication) for one server
If the client sends 100 bytes of informatio ...
Posted by thebluebus on Tue, 03 Mar 2020 19:13:24 -0800
unity wakes up another winform and sends data
Recently, the main thread resource of unity is occupied when saving a scenario, which causes the UI of unity itself (I think, or I think that the UI of the scenario to be saved cannot be used normally) to fail to display the progress bar. When this problem cannot be solved, I think of a compromise wa ...
Posted by stvs on Tue, 03 Mar 2020 03:44:45 -0800
Java NIO implementation of Reactor model
The implementation of Reactor model can be divided into the following three types:
Single thread model
Single Reactor multithreading model
Master slave Reactor multithreading model.
Single thread model
The Reactor single thread model refers to that all IO operations are completed on the same thread. The responsibilities of the thread are as f ...
Posted by nightowl on Sat, 29 Feb 2020 20:44:02 -0800
centos7 system startup process
Premise: pc host, MBR architecture
Step 1: post (power on system test) power on self test.
There is a rom chip (CMOS) on the main board of the pc. after power up, the cpu looks for the raw, reads the instructions inside, and checks whether there is memory, hard disk, display device, etc. on the machine.
There is a bios (basic input output sys ...
Posted by nc_brox on Fri, 28 Feb 2020 01:43:46 -0800