the composition of the Linux kernel subsystemConsists of the above 7 subsystems. First, memory management subsystemFunctions:1, from the virtual address to the management of physical address mapping. 2, the management of physical memory allocation.
Review:Process creationFork ();Process terminationExit (0)/return 0;Process waitWait ()/waitpid (pid,null,0);Process substitutionexec function Family------------------------1.system () functionSystem-execute a shell command#include int system (const
During the learning process, Linu C says that the new process generally executes another program, and it does not make sense to execute the same program as the parent process.Here's how to execute a new programUsing the EXEC function clusterThe EXEC
What is a zombie process ?First the kernel releases all the stores used by the terminating process (called the exit system call), closes all open files, and so on, but the kernel holds a certain amount of information for each terminating child
Linux Programming the signal () function when the server close a connection, if the client side then sends the data. According to the provisions of the TCP protocol, you will receive a RST response, when the client sends data to this server, the
For Java, typically one application has only one process--JVM. Unless a new process is derived or opened in the code.threads, of course, are opened by the process. When the process that opened the thread leaves, the thread is no longer there.So, for
Access Registration Property Android.permission.ACCESS_CHECKIN_PROPERTIES, read or write permissions to the Register check-in database property sheet
Get the wrong position android.permission.ACCESS_COARSE_LOCATION, through WiFi or mobile base
In TV works, transitions or transitions between paragraphs and paragraphs, scenes and scenes are called transitions. In order to make the content of the TV TV more organized, the development of the level more clear, in the scene and the transition
First, zombie process
When the child process exits, the kernel sends a SIGCHLD signal to the parent process, and the child process exits as an asynchronous event (the child process terminates at any time the parent process runs)
When a child
In Android's design, access to resources, or network connectivity, is required to claim access to these services, otherwise it will not work properly. In Android, there are many kinds of permissions, here will be all kinds of access rights one by
For this type of error is caused by the IPC semaphore of the Linux system, when Apache starts, it creates many child processes. They communicate through the semaphore to the child process.
Signal Volume Introduction:
Semaphores, also known as
One. Thread synchronization
1.posix Signal Volume:
With System V IPC Semaphore (Semget ...) Very similar, but not guaranteed to be interchangeable.
#include
Initialization function: Sem_init (sem_t * __sem,int __pshared,unsigned int
Advanced Programming for UNIX environments, POSIX multithreaded programming learning notes and key summaries.
One, 4 states of the thread
State
Meaning
Ready (Ready)
The thread can run, but is waiting for the
Nux The Process management tool to replace top htop
This article turns from: http://www.cnblogs.com/mchina/archive/2013/03/15/2858041.html
introduction of Htop
This is htop, a interactive process viewer for Linux. It is a text-mode application
Sigprocmask function:
Function Description:
Sets the mode of processing (blocking or not blocking) the signal within the set of the signal shield.
Usage:
#include
int sigprocmask (int how, const sigset_t *set, sigset_t *oldset);
Note:if
process data structure (process descriptor)
Direct view of the source code (here is the 0.11 version of the kernel) in the file/include/linux/sched.h,linux Process Control block for a structure task_struct defined by the data structure, the
Reproduced from: http://my.oschina.net/renhc/blog/54582 Today, a program that has been running for nearly a year has suddenly hung up, the problem is located to the system () function of the problem, the simple use of this function in my previous
Several system calls are described in detail in the last article, and they all end up calling Do_fork to implement the process creation. Do_fork mainly completes the process descriptor creation and the PID creation, as well as the process descriptor'
Brief Introduction
Qprocess can be used to start external programs and interact with them.
To start a process by calling start (), the parameter contains the name of the program and the command-line arguments, as a single string of
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.