Let's start with the runtime class. It is a class related to the JVM runtime environment, which is Singleton. I want to talk about some things that I think are important to me.
1. runtime. getruntime () can obtain the runtime environment of the
# User GroupUser WWW;# Working Process: According to the hardware adjustment, some people say that a few CPU cores should be configured. I think it can be a little moreWorker_processes 5;# Error LogError_log logs/error. log;# PID File LocationPID
1.nginx_log_rotate.sh file#nginx Log Cut script#author: Henrylinux#!/bin/bash#1. set the log file storage directory, assuming that your Nginx The log exists in this directoryLogs_path= "/data/logs/nginx/"#2. Set PID file, this according to your own
Linux provides a more robust signal interface: sigaction.
# Include
Int sigaction (INT Sig, const struct sigaction * Act, struct sigaction * OCAT );
The sigaction structure is defined in the file signal. H. It defines the action to be taken after
This series of articles written by muge0913, reproduced please note the Source: http://blog.csdn.net/muge0913/article/details/7334771
1. Sometimes you do not want to stop the current execution immediately when receiving a signal to process the
Fork introduction:
The fork system calls a function to create a child process for the current process. The child process is actually a copy of the parent process, but its pid Number is different from other few parameters. Fork system call is an
Signal processing is the first thing to process when the current process is interrupted, from the kernel state to the user State. When the process returns from the kernel state to the user State, first, check whether the process has the signal to be
The art of Linux kernel design: Graphic Design and Implementation of Linux operating system architecture
The art of Linux kernel design: graphic design and implementation principles of Linux operating system architecture. The ability to control and
1. Signal Processing: kill (), alarm (), pause () function, alarmpauseZookeeper
1. How to view the signal: man 7 signal. You can use this command to view all the information.
2. view the signal kill-l
Note that the following 32 signals represent
Summary of 15th days of study during winter vacation (linux advanced programming)
Then yesterday1. process 2. Create a process
(1) int system (const char * command );
(2) FILE * popen (const char * command, const char * type );
(3)Exec
Android Auto-Boot Analysis,1.1 enable the Android system1.1.1. Implement your own broadcast receiver and implement the logic to be processed in the onReceive () method1.1.2. register the broadcast receiver in AndroidManifest. xml and declare that
This article is the third article in the series. It is mainly intended to be used by the user and help others.
3.1 Super UsersIt is actually a root user. We are familiar with it in Linux. Here we just summarize that this account has the attributes
System v ipc:This must be understood first, because many books or materials directly say that IPC is a shared memory, message queue, and signal set. In factIPC is a mechanism that provides a channel for inter-process communication. Why does it add
Signal Concept
There is no signal numbered 0.
Signal generation method:
1. When a user presses a terminal key, the terminal generates a signal.
2. Hardware exceptions generate signals, such as SIGSEGV signals.
3. A process can call the kill function
(1) exec Function Description
The fork function is used to create a child process, which is almost a copy of the parent process. Sometimes we want the child process to execute another program, the exec function family provides a method to start
A process is a running activity that can be executed concurrently by a program with independent functions. It is a computer program in the active state.
Process status: User status/kernel status/in-memory readiness/in-memory sleep/ready and swapped
The role of ignore sigchld signal-preventing the generation of zombie Processes
Signal (sigchld, sig_igr); // ignores sigchld signals, which is commonly used as a technique for concurrent server performance.// Because the concurrent server often
/*
** Writing: Beyond Review
** Source: www.20cn. net
** Note: indicate the source of the post.
*/
# Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include
Int m_mainid = 0; /
The nginx startup process closely revolves around the ngx_cycle_t struct. First, obtain the command line parameters through ngx_get_options (), and then initialize the time through ngx_time_init (), such as the global variable ngx_cached_time; then,
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.