In fact, PHP is supported by concurrency, but usually rarely used. The most commonly used should be the use of PHP-FMP scheduling PHP process it.However, the use of PHP is not limited to the web, we can also use PHP to do the System tool class
Transferred from: http://blog.csdn.net/jason314/article/details/5640969First, Fork Introduction knowledgeA process, including code, data, and resources assigned to the process. The fork () function creates a process that is almost identical to the
In the shell, $* and [email protected] respectively represent the following meanings:$ A: The name of the script itself$#: Number of positional parameters$*: All positional parameters will be treated as a string[Email protected]: Each positional
int main (){printf ("abc\n");pid_t r = fork ();//The child process starts from the next statement in Fork (), and the answer is run from the second half of the forkif (r==0){printf ("Getpid =%d\n", Getpid ());printf ("Getppid =%d\n", Getppid ());}if
Message Queuing synthesis case Message Queuing implementation back-up client/server Server when the process receives , Specify Msgtyp to be 0, keep receiving messages from the head of the teamWhen the server process is sent, Mtype is specified as
Linux Command background runThere are two ways of doing this:1. Command &: Background run, you shut down the terminal will stop running2. Nohup Command &: Run in the background, you will continue to run the terminalFirst, IntroductionLinux/unix the
1. Drop the command directly into the background to execute "&" and Add "&" at the end of the command.Leave your current job in the background and pause: [ctrl]+z2. Jobs [-lrs]: View the current background work status.Parameters:-L: The PID numbers
#multiprocess. Process Module #process module is a module for creating processes, with which you can complete the process creation # process ([Group[,target[,name[,args[,kwargs]]]), The object that is instantiated by this instantiation, #
PS Viewing processThe Inux process has 5 states:1. Running (running or waiting in the running queue)2. Interrupt (dormant, blocked, waiting for a condition to form or receive a signal)3. Non-interruptible (receive signal does not wake up and not run,
Tags: killlinuxfirefoxtimerexception2012-01-19 22:48 335004 people read review (+) collection report Classification:tips ($) Linux($) Reproduced an article, the most original source has not been tested, hope forgive me!General article:First, use
Fork,vfork,cloneUNIX standard replication process system calls fork (that is, fork), but Linux,bsd and other operating systems do not only implement this one, specifically, the Linux implementation of three, Fork,vfork,clone (specifically Vfork
Top commandMonitor the operating state of the system, and can be sorted by CPU, memory, execution time. The first line, 03:30:22 is the current time, up 39 min is how long the system runs, 1 user indicating that there are currently several users
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.