Home > Backend Development > PHP Tutorial > 有办法在windows下实现PHP的多进程编程吗?

有办法在windows下实现PHP的多进程编程吗?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:26:24
Original
2162 people have browsed it

pcntl系列函数只能在*nix系统上使用,请问windows下能不能做PHP的多进程实现?

回复内容:

pcntl系列函数只能在*nix系统上使用,请问windows下能不能做PHP的多进程实现?

你先想清楚是否真的需要fork, signal, priority等pcntl的特性,如果其实你只是想要另外新开一个进程,也可以通过cli下面用exec执行额外的php进程来一定程度上模拟多进程

如果你确实需要fork等特性:

  1. cygwin是Windows上的POSIX环境,你可以在上边试试编译php以及pcntl的扩展(不知道是否能走通)

  2. 上虚拟机吧

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template