[ NetworkAdmin @ 10.11.2004. 11:52 ] @
Zdravo evo htio mih da uradim sljedece... pravim jedan mali tool koji bi u trenutku izvrasavanja treba da dovuce jedno 10 html stranica sa udaljenog servera. Da to nebi islo straanicu po stranicu u loop htio bih da dignem recimo isto toliko child processes i da svaki proces paralelno dovlaci html i snimi u zajednicku memoriju. Evo gledam: pcntl_exec - Executes specified program in current process space pcntl_fork - Forks the currently running process pcntl_signal - Installs a signal handler pcntl_waitpid - Waits on or returns the status of a forked child pcntl_wexitstatus - Returns the return code of a terminated child pcntl_wifexited - Returns TRUE if status code represents a successful exit pcntl_wifsignaled - Returns TRUE if status code represents a termination due to a signal pcntl_wifstopped - Returns TRUE if child process is currently stopped pcntl_wstopsig - Returns the signal which caused the child to stop pcntl_wtermsig - Returns the signal which caused the child to terminate ove finkcije su slabo dokumentovane a nisam ni vidio neke primjere na netu. Ne znam mozda je zomica se ovim malo vise bavio... pitao sam i na codeworkers ali nisu mi imali nesto specijalno da preporuce. |