Linux Basic Learning 2

Catalog Linux Basic Learning 2 File directory structure File Naming Specification File System Structure Composition of linux applications Absolute and relative paths Directory name and base name Switch directories Switch to Home Directory Switch to the last dire ...

Added by Lillefix on Tue, 27 Aug 2019 03:41:00 +0300

How Tengine Finds server Blocks

Summary The target reader of this article is Tengine/Nginx R&D or Operations and Maintenance students. If you are very clear about this logic, you can skip it. If you have the following questions in the process of configuring or developing Tengine/Nginx, this article may be able to answer your questions for many years: Which server block d ...

Added by fisicx on Fri, 23 Aug 2019 07:36:20 +0300

Buffer and Channel in NIO

NIO (New IO) concept: Since version 1.4 of JDK, JDK has provided a new IO operation API. NIO provides non-blocking, non-blocking, highly scalable network I/O, which improves efficiency. NIO has three main core components: Channel, Buffer and Select ...

Added by ginginca on Thu, 22 Aug 2019 13:58:03 +0300

Concurrent Programming Protocol

A primer The theme of this section is based on single threading, which implements concurrency with only one main thread (apparently only one cpu available), so let's first review the nature of concurrency: toggle + save state The cpu is running a task that will be cut off to perform other tasks (switching is mandatory by the operating system) e ...

Added by TFD3 on Thu, 22 Aug 2019 03:47:23 +0300

Concurrent programming multithreading

Multithreading for Concurrent Programming (Theory) Introduction to a threading module The multiprocess module fully mimics the threading module's interface, and they are very similar at the usage level, so they are not described in detail. Official link: https://docs.python.org/3/library/threading.html?highlight=threading# Two ways to open a th ...

Added by alevsky on Wed, 21 Aug 2019 03:41:35 +0300

Simple Exercise 4 (Day17, 18 JAVA Review)

Personal Review Exercise 3: Implementation of Simple Web Server 1. Requirements and implementation methods 2. Code Implementation First task realization Second task realization Last task realization Led by the teacher, I made a simple Servl ...

Added by behrk2 on Tue, 13 Aug 2019 15:27:36 +0300

Java non-blocking IO and asynchronous IO

Links to the original text: https://www.javadoop.com/post/nio-and-aio The last article introduced the basic operations of Buffer, Channel and Selector in Java NIO, mainly some interface operations, which are relatively simple. This article w ...

Added by Nile on Sat, 10 Aug 2019 17:16:59 +0300

Examples of tcp sticking and unpacking and solutions using LengthFieldFrameDecoder

What are sticking and unpacking?The TCP protocol is a byte stream protocol with no record boundary. When we receive a message, the packet that cannot be received artificially is an entire package message. When a client sends multiple message data to a server, the TCP protocol may combine multiple message data into a single packet for sending, w ...

Added by ericburnard on Sat, 10 Aug 2019 07:35:01 +0300

Reliable Multicast Programming (PGM) Protocol

Reliable Multicast Programming (PGM) is a general reliable multicast protocol that guarantees the reliability of multicast to some extent.It is an IP upper-level protocol, and has UDP peers with TCP, working in the transport layer. In the multicast transmission video project, it is found that when the network is poor, the performance of multica ...

Added by FrostedFlakes on Sat, 10 Aug 2019 04:39:39 +0300

Comprehensive Analysis of SO_REUSEADDR Parameters of socket

Before we go into details, let's look at how the man document of socket(7) describes this parameter: SO_REUSEADDR Indicates that the rules used in validating addresses supplied in a bind(2) call should allow reuse of local addresses. For AF_INET sockets this means that a socket may bind, except when there is an active l ...

Added by Dragonfly on Wed, 07 Aug 2019 17:05:44 +0300