Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129749 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id BDD031A00BC for ; Sat, 10 Jan 2026 11:58:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1768046328; bh=pH91ggmRXaxdOslI5GeHrOsxUV7+4eDfNPFphB0SS/g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gFzml/bjO/J9sTf4QTRLUHDn1zxVrgDfxpa2DjZb+LEUbZVnjIoVXHO2yRhamCaVe 54OCOV/8hmjwDiOW4CgJiXkhKzMykwLlG5tc25xoD0Or2LucfLD+8dRKwsWXfIsM54 69lxqHwo4uJrBG8YpP4gFf2U7+Fj6gBq2liAaGiyWvyVKPkYyDL/kZZlRKpGlwpwDo Glw3oCbFyPe5GlRYlUmo45eu3Se2+dNx9hU00PKEBYwkpdbG7X6WaPvdhHaHnS8uHX xPVTpreLH7EFlsZwwskbGg02vd8AchBNQ2JYY2foC/tr26SoMkmLrBaO5q2Nk45DSt 6EFT9RiF28cfA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 799A1180053 for ; Sat, 10 Jan 2026 11:58:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-dy1-f171.google.com (mail-dy1-f171.google.com [74.125.82.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 10 Jan 2026 11:58:47 +0000 (UTC) Received: by mail-dy1-f171.google.com with SMTP id 5a478bee46e88-2ae57f34e22so3616960eec.1 for ; Sat, 10 Jan 2026 03:58:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768046321; x=1768651121; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pH91ggmRXaxdOslI5GeHrOsxUV7+4eDfNPFphB0SS/g=; b=mGV+AcDqGH1XM7RBCa9Y9cIoKOxthD2CnZXumav7ybzlc/52mOayksai9Xu58XbnqA LtVjP5z+ipVWvODgCsngrxqbTzC3XSrfqD3+SL/Pzr6Uje3a11teBbzEw9ZwlBl/PKRJ oGW9WXCbuTmv5JCAh1gIJY2h7Vy3yV6pTsYkKEZsRequNkWt1lEjJvWisqFaCPJ5wMSK E4GOXsm4bpvMLPb0vE/tEG6Z6pfz5OxNTaOeLTsnkKbxQL+D45mHLm12/5yldQb1RhWX Z0g9dqA625b1Blor8aJBd9eVh+8ZChAYySS7BLCFE+VIk0Fi6tRAmBcyeLrfKtZvqPWR iHtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768046321; x=1768651121; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pH91ggmRXaxdOslI5GeHrOsxUV7+4eDfNPFphB0SS/g=; b=J6JqMBUEdpcvep5PX2iSFpHAXmKCnRrC1j/11daKNYruqyBXGph/JNm3U/97jlcmsN JIZ8q5owVk+NonAte/b7m92v6/tE0bI2KBZZiiBiUobRkCEMsyhKkhLUWZlIkKmZzn1I OUvkT/xmypvjipVgq4bj72TUUEuOdJWpd5/Wq1d/MMWgHUnYYRC0xt/5bVmRGKnFKUVx igI4931SqZY+ppqcqwaV/k/O3tMClTnu8zTs8kv7MjRDqZ4R4pyDI2qe3e/m26LIJ9bS oMQ26hApPuOEosoPXOgbD6AWlwoqB9ODXVtZlcQhvdEW6a+ePyLolAWdlVAk3R38m1rD ReBg== X-Gm-Message-State: AOJu0YwjBJq120nvhLABk1sGrEOu5iCpiC8aTD2xB8J9ew++bsFkINZ0 kK9gXOg3yikrZKdn37XGoXc5ebHccaHn3K4f9u6jx6nr+4rRy4whuUdfmI/5kLISkn0glTGm19X uqwpDYVqc9v4Ufl0AG6/WRwvA5S4d3g== X-Gm-Gg: AY/fxX5cfcQ+u1hC9BTQypKGYmRe58dDCJUQeUe8Q2xmeuYUfqCliHHhm4Lzv5nJ9XG wZA0Jf2nNtOTj6bUk91UoUOzhSeZ5WncN5emt7I/1BpVM9hU9xczg3HwJk8wH2WTNxtMzNwO6B0 7dbHI1E5vsP4iBQndm56BbaiIAlBFCL62oEi+aA4qElaydxqKyyoF6ZN+vxCge5flC1dEYjkk6n lZjs3CUZPALI6aKlOiIYdtWninWQDEJZk1p27ejwzdV8k0FicWf1M/YDWr8qrbQTaGP9rLFrQJ6 Gwk= X-Google-Smtp-Source: AGHT+IFoppPysDxfheejN+yHL6TXkLo9aLaRZw+qm/xYOEq13fFN96X++B9EnqU+L5y6q1g068bFr1U2h8Qy/j32mNY= X-Received: by 2002:a05:7301:3f99:b0:2a4:3592:cf75 with SMTP id 5a478bee46e88-2b17d2959a3mr10357436eec.25.1768046321044; Sat, 10 Jan 2026 03:58:41 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 10 Jan 2026 14:58:29 +0300 X-Gm-Features: AZwV_QhpqXRi0Z9kR8X_MwwSUwzv-bGTrSi3Lc_Xk4GvG4uaN44yGQg1XGPm2OY Message-ID: Subject: Re: [PHP-DEV] Analogue of Node.js Worker threads? To: Edmond Dantes Cc: internals internals Content-Type: multipart/alternative; boundary="000000000000e991a70648075ce4" From: pacha.shevaev@gmail.com (Pavel Shevaev) --000000000000e991a70648075ce4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 10, 2026 at 1:56=E2=80=AFPM Edmond Dantes = wrote: > Hello, Pavel. > > PHP has the Parallel library, which already allows you to do quite a lot. > But you probably already know about it. From the multithreading > perspective, there is also the following research: > https://github.com/true-async/multithreaded-php/blob/main/mm-en.md > https://github.com/true-async/multithreaded-php/blob/main/mm-ru.md > > This article discusses a direct analogue of the architecture used in > Node.js. > Lots of cool ideas, thanks for sharing! > > I hope that this year we will be able to move TrueAsync forward, and > along with it possibly introduce convenient multithreading as well. > Keep up the great work guys :) --=20 Best regards, Pavel --000000000000e991a70648075ce4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Jan 10,= 2026 at 1:56=E2=80=AFPM Edmond Dantes <edmond.ht@gmail.com> wrote:
Hello, Pavel.

PHP has the Parallel library, which already allows you to do quite a lot. But you probably already know about it. From the multithreading
perspective, there is also the following research:
https://github.com/true-async/mult= ithreaded-php/blob/main/mm-en.md
https://github.com/true-async/mult= ithreaded-php/blob/main/mm-ru.md

This article discusses a direct analogue of the architecture used in Node.j= s.

Lots of cool ideas, thanks for sharing!
=C2= =A0

I hope that this year we will be able to move TrueAsync forward, and
along with it possibly introduce convenient multithreading as well.

Keep up the great work guys :)=C2=A0


-= -
Best regards, Pavel=
--000000000000e991a70648075ce4--