Netty communication technology

1, Introduction 1, Overview Netty is an open source framework provided by JBOSS. In essence, it is a network application framework. It provides a non blocking and event driven network application framework and tools to facilitate the rapid development of high-performance and reliable network server and client. 2, Core architecture         ...

Added by RobertSubnet on Thu, 06 Jan 2022 12:02:11 +0200

NioEventLoopGroup initialization of netty server

1. Inheritance system diagram of nioeventloopgroup You can see that the EventExecutorGroup inherits from ScheduleExecutorService and Iterable This means that there are thread pools and iterators. What does NioEventLoopGroup do to the thread pool and what are iterators iterating? Look down~ 2. Function description of eventexecutorgroup c ...

Added by amos_ on Mon, 03 Jan 2022 10:42:01 +0200

Network programming self-made communication gadget (with source code)

catalogue I. Introduction Second, write source code 2.1 create server and client 2.3 create function Three renderings IV. summary V. source code I. Introduction Readers can understand the code and self-made by mastering the basic knowledge of multithreading, io flow and network programming. It is very easy to understand and learn. T ...

Added by renob on Tue, 28 Dec 2021 13:59:45 +0200

JAVA realizes file locking and tamper proof -- JAVA programming thought 83

In the code, you can lock the code fragment through the synchronized keyword. Suppose we need to lock the file, and synchronized can only lock the JAVA execution code. What if another thread operating the file is another local thread in the operating system? At this time, it is obviously not possible to lock only through the synchronized keywor ...

Added by Otoom on Sun, 19 Dec 2021 09:52:53 +0200

Sorting out NIO basic knowledge points -- except selector

The JVM reads the data model Program execution efficiency is more determined by I/O efficiency Need to wait for data transmission It is the insufficient efficiency of JVM in I/O that leads to the reduction of program efficiency. In the operating system, large pieces of data can be read directly from the hardware, and the JVM I/O prefe ...

Added by Yegg on Thu, 09 Dec 2021 17:48:27 +0200