Created
June 9, 2020 17:36
-
-
Save ultimagriever/15a4f4fe289b95a33ebe4ab76f65747b to your computer and use it in GitHub Desktop.
Revisions
-
ultimagriever created this gist
Jun 9, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ function conectar() { // aqui vai toda a rotina de connect... mysql_connect(....); } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ require 'conectar.php' class ConectarThread extends Thread { public function run() { // fazer a conexão aqui conectar(); } } $conexoes = []; for ($i = 0; $i < 4096; $i++) { $conexoes[$i] = new ConectarThread($i); $conexoes[$i]->start(); }