Apache2 has two types of processes: Master process (master_main) and child process (child_main ).
Three threads are derived from sub-processes:
1. Control thread controls the thread. Is the main thread. Creates an accept thread and worker threads to
Ulimint-A is used to display various current user process restrictions.Linux limits the maximum number of processes per user. To improve performance,Set the maximum number of processes for Linux users. For some processes, set them to
1> application: Start (log4erl ).
Let's start with this command line. After you press enter, you can start the log4erl application. the component that can complete a specific set of functions in Erlang/OTP is called application ., application is one
Linux is a multi-user, multi-task system. If you can run multiple programs of multiple users at the same time, many processes will inevitably be generated, and each process will have different states. In the following sections
The following
We will introduce some standard signal names and the events they represent. Each signal name is a macro representing a positive integer, but you should not try to speculate on the specific value represented by the macro, but directly use the name.
Java multi-thread programmingHere we need to recall the process, that is, the running program, a concurrent task in the multitasking operating system (The CPU runs multiple processes on time slice.), Thread. Its essence is the sequential execution
I. fcntl Functions
Function: manipulate the file descriptor to change the attributes of an opened file.
Int fcntl (int fd, int cmd,.../* Arg */);
The cmd value can be as follows:
Copy file descriptorF_dupfd (long)
Set/Get file descriptor
Song Baohua talks about arm's embedded Linux porting experience 5: Application Instances
Writing application instances does not belong to the Linux operating system transplantation. However, to ensure the integrity of this series of articles, we
Commonly used inter-process communication includes pipelines, message queues, and shared memory.
MPs queue
The first pipeline was used to share data between kinship-related processes. The parent process first creates an MPS queue, and then fork ()
Writing application instances does not belong to the Linux operating system transplantation. However, to ensure the integrity of this series of articles, we provide a series of instances for developing applications for Embedded Linux.
The following
The two signals that are often obfuscated are sigcld and sigchld. The signal sigcld is derived from System V. The meaning of the signal is different from that of the signal sigchld originating from BSD. Posix.1 signal is also called sigchld. the
Sigpipe signal details
When the server closes a connection, if the client sends data. According to the TCP protocol, an rst response is received. When the client sends data to the server, the system sends a sigpipe signal to the process, telling
View Linux Processes
Linux Process
Processes are the basic unit of Transaction Management in Linux. All processes have their own independent processing environment and system resources, and they cannot directly access the resources of the other
When I used the WinForm program to call the Excel COM component, I also encountered the Excel process exit problem. Many people have encountered this problem, and the solution is also very hot. To sum up, the first method is to call the relevant
Linux system programming-Process Control: Process Termination, waiting for Process Termination, linux ProcessEnd Process
First, let's review the functions of continue, break, and return in C:
Continue: end this cycle
Break: jump out of the entire
In Synchronous Programming, once an error occurs, an exception is thrown. We can use try... Catch is used to catch exceptions, but uncaptured exceptions are continuously passed up to form a simple and unified error handling mechanism. However, for
In Python, four methods are used to run other programs, and four are python.In Python, you can easily use the OS module to run other scripts or programs, so that you can directly use the functions provided by other scripts or programs in the script,
In the LIUNX system in order to execute a command every minute, the most common way is crontab, if you do not want to use Crontab, with colleagues in the program can use the timer to achieve this function, so began to grope, found that need some
Daemon scene
Consider the following scenario: You write a Python service program and start at the command line, and your command lines are controlled by the terminal, and the Python service becomes a subprocess of the terminal program. So if you
Simulate automatic login to Sina Weibo. For details, see program Comments. [php]? Php *** function: simulate Sina Weibo login * purpose: simulate user login for subsequent operations. for example, to automatically control your Sina app refresh
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.