PHP Real multi-threaded pthreads

Source: Internet
Author: User
Installation

Pthreads only supports thread-safe versions above php5.3. View by Phpinfo () method

1 Download Address http://windows.php.net/downloads/pecl/releases/pthreads/

Depending on the specific PHP installation environment, I chose:

Php_pthreads-2.0.9-5.6-ts-vc11-x64.zip

Where 2.0.9 is the pthreads version number, 5.6 is the PHP version number, TS represents the thread-safe version (with Apache), VC11 is the compiler VC version, x64 represents the target operating system 64bit


2 copying Php_pthreads.dll to directory bin\php\ext\

Copy the PthreadVC2.dll to the PHP installation root directory

Copy the PthreadVC2.dll to the System32 directory

Open php.ini Add extension extension=php_pthreads.dll

Finally restart Apache

3pthreads Example http://docs.php.net/manual/en/book.pthreads.php

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.