1. Function description
Pipe (Establish pipeline):
1) header file #include
2) define function: int pipe (int filedes[2]);
3 Function Description: Pipe () creates the pipe and returns the file descriptor from the parameter Filedes array.
Filedes[
Let's take a look at an example of using fork to invoke the EXECLP () function to implement the PS or LS command under Linux:
#include "sys/types.h"
#include "unistd.h"
#include "stdio.h"
#include "stdlib.h"
int main ()
{
pid_t result;
Association Rules Mining (Association rule Mining) is one of the most active research methods in data mining, which can be used to discover the connection between things, and to discover the relationship between different goods in supermarket
One
the difference between TCP concurrency and UDP concurrencyWhether it is Epoll or select, it is for multiple file descriptors when there is no data ready to be observed. If there is only one file descriptor, then the process simply observes that
The process in Linux is the most basic concept, the process from the run queue to the beginning of the run there are two places, one is the SWITCH_TO macro in the label 1: "1:/t", the other is ret_form_fork, as long as not the newly created process,
1.
(1) Data transmission
A process needs to send its data to another process
(2) resource sharing
Share the same resources between multiple processes
(3) Notification events
A process needs to send a message to another or a group of processes
Experiment request: Implement a remote compiling system
Execution process: The client submits the C language code file, compiles the connection on the server, and returns the result to the client after the server executes the file.
Detail
From the list1.c we can see that the subprocess actively requests to be tracked through Ptrace_traceme, but for a debugger it must be able to proactively track an arbitrary process rather than just debugging those processes that are actively
Written in front:
Plan to write a Web server, in the group's group Bo did not find the relevant articles, they intend to record this process from the beginning, one is to clean up my construction process, the second is also able to make the back of
POSIX semaphores are real-time extensions that are part of the POSIX standard system interface definition. The XSI IPC defined in the SUS (Single UNIX specification) specification also defines the system interface that people commonly refer to as
#include
#include
int main ()
... {
if (fork () = = 0)
... {
printf ("Child Process say hello to you!");
Sleep (5);
Exit (0);
}
Else
printf ("Parent Process, Hello");
return 0;
}
1: You typically use GDB to debug a subprocess by inserting the
DUP () and dup2 () functions
DUP and dup2 are also two very useful invocations, all of which are used to copy a file descriptor.They are often used to redirect the stdin, stdout, and stderr of the process.The prototypes of these two
the role of DUP and dup2DUP and dup2 are also two very useful calls that are used to copy the descriptor of a file. They are often used to redirect stdin, stdout, and stderr of processes. The prototypes for these two functions are as
1. Linux Process Control theoryThe ① process is a running activity (dynamic, concurrency, Independence, asynchrony) of a program with a certain independent function. Four elements of a process:(1) There is a procedure for its execution (not
An analysis of the Linux process IPC [interprocess communication SYSTEMV Shared Memory]
Shared Memory Concepts, overview
Related functions for shared memory
Shared memory Concepts, overview:A shared memory area is a portion of
I. Daemon programming model1 . Create a child process, the parent process exits all work in the subprocess formally out of control terminal 2. Create a new session in a child process the setsid () function makes the child process completely
When there is more than one process in the system, which process executes first, and which process after execution is determined by the priority of the process. The priority of a process is determined by the Nice value, and the lower the Nice value,
26.1 system function 26.1.1 function descriptionSystem (execute shell command)Correlation function Fork,execve,waitpid,popen1 #include 2int system (constcharstring);
function functions: Simplifying the EXEC function
Function description
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.