Source code analysis of Android system startup process

Original address 1. When the system boot program starts the Linux kernel, the kernel will record various data structures and drivers. After loading, the Android system starts and loads the first user level process: Init.c(system\core\init) //main() method in Init.c int main(int argc, char **argv) { //Parsing execution ini ...

Posted by Xyox on Thu, 02 Apr 2020 05:46:27 +0200

MySQL common operations (2) user management, common statements, database backup and recovery

1. mysql user management In daily use, it is necessary to limit the permissions of personnel, so it is necessary to manage users. ##Create users and authorize Specify login IP [root@host ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. mysql> grant all on *.* to 'user1'@'127.0.0.1' identified by '123456'; #Create user1 us ...

Posted by pucker22 on Wed, 01 Apr 2020 20:18:42 +0200

javascript websocket [heartbeat + service pushing information forward]

1. [Role]To maintain the sustainability and stability of the connection, the websocket heartbeat is the solution.2. [Analysis]1. If the device network is disconnected, the native websocket will not immediately trigger any events on the websocket, and the front end will not know if the current connection has been disconnected.2. When we use the ...

Posted by mator on Tue, 31 Mar 2020 03:17:16 +0200

Spring Mongo configures multiple Mongos

Since the data store uses a MongoDB cluster, the address is the address of Mongos when accessed externally, and no problems were found during use. The configuration is as follows: <mongo:mongo host="${mongodb.hostname}" port="${mongodb.port}"> <mongo:options connections-per-host="${mongodb.port}" threads-allowed-t ...

Posted by Mesden on Mon, 16 Mar 2020 17:09:38 +0100

NIO realizes Internet chat room

1. NIO completes network programming 1.1 Selector boss Selector Selector, network programming using NIO's big brother!!! The server can execute a thread, run the Selector program, and listen. New connection, connected, read data, write data Common methods of Selector: public static Selector Ope ...

Posted by shoutdots on Mon, 16 Mar 2020 15:21:41 +0100

Introduction to Java - Object Oriented - 03. Polymorphism

Original address: http://www.work100.net/training/java-polymorphism.htmlMore Tutorials: Beam Cloud - Free Course polymorphic Sequence Number Intratext chapters video 1 Summary - 2 virtual function - 3 Implementation of polymorphism - See the navigation section above for reading 1. Overview Polymorphism is the ability of the same be ...

Posted by moonoo1974 on Sat, 07 Mar 2020 06:05:51 +0100

#IT star is not a dream

At present, k8s mainly supports two kinds of resources: CPU and memory. In order to support the scheduling and allocation of other types of hardware resources that users need to allocate on demand, k8s implements the device plugin framework for resource integration of other types of hardware. For example, now machine learning uses GPU and othe ...

Posted by scheda on Mon, 17 Feb 2020 08:17:57 +0100

Spring boot project integrates websocket to realize connectivity

Spring boot project integrates websocket to realize connectivity brief introduction pom.xml introduces dependency Create websocket configuration file for spring boot project websocketServer core code An entity class not understood, annotated to be solved js of front-end page, creating websocket for ...

Posted by aahh on Wed, 12 Feb 2020 16:30:55 +0100

netty heartbeat detection mechanism

There is a heartbeat detection mechanism in Netty. When the client does not read or write for a certain period of time, the server can detect it and prompt IdleStateHandler is the processor that netty processes idle state The specific implementation steps are as follows: 1. Reader idletime: indicate ...

Posted by yendor on Tue, 11 Feb 2020 16:11:16 +0100

SpringBoot(23) integrates socket.io server and client for communication

1. Preface What is the difference between websocket and socket.io? websocket A technology for two-way real-time communication between client and server While mainstream browsers already support it, there may be incompatibilities when using it Suitable for client and node-based server use socket.io Encapsulate WebSocket, AJAX, and other comm ...

Posted by pixelsoul on Fri, 07 Feb 2020 18:03:22 +0100