[Original Address:https://blog.ti-node.com/blog …] Daemon phonetic symbol: [‘di: Mn], which means patron saint or spirit in Chinese. in fact, it also means guardian process. A daemon is simply a process that can run in the background without leaving the terminal. This is a very common process in Linux. After services such as apache or mysql are ..

Read more

[Original Address:https://blog.ti-node.com/blog …] In fact, PHP is multi-threaded, but it is not commonly used by many people. Using PHP multithreading requires downloading PHP with a thread-safe version (ZTS version) before installing pecl’sPthread extension. In fact, php has multiple processes, and some people reuse it. Generally speaking, PHP’s multiple processes are not bad, just open pcntl ..

Read more

[Original Address:https://blog.ti-node.com/blog …] In fact, you must remember that PHP’s multi-process is a highly valuable productivity tool that is well worth applying to production environments. However, I think there are still two basic concepts to be said before we start bragging officially: orphan process and zombie process. In the previous article, I talked about pcntl_fork ..

Read more

[Original Address:https://blog.ti-node.com/blog …] Often the purpose of starting multiple processes is to work together to speed up efficiency. As mentioned earlier, the memory spaces between different processes are isolated from each other, which means that process A cannot read or write any data content in process B, and vice versa. However, sometimes, there must be ..

Read more

[Original Address:https://blog.ti-node.com/blog …] The Chinese name of socket is socket, which is the “encapsulation” of TCP/IP. In reality, the network has only four layers, namely, the application layer, the transport layer, the network layer and the data link layer from top to bottom. The most commonly used http protocol belongs to the application layer, while ..

Read more

[Original Address:https://blog.ti-node.com/blog …] Just as the title says, the opening words of epoll are quivering. The reason for shaking and trembling is probably that there was almost no previous experience of “hand-cutting” epoll himself. Only epoll’s theoretical knowledge was used to cheat children into acting as masters. Now, without the care of the elder martial ..

Read more