Which is more advantageous to multitasking between PHP and java?

give me an example. To implement a telephone charging system for top-up cards and secret recharge phone numbers, for example, there are 1 million phone charge cards and 1 million phone numbers in my table, and each phone number corresponds to a top-up card to recharge an order, then I want to implement the system to process these phone charges, and each order takes 2 seconds, if the system processes the order one by one, it does not have to wait for 2 million seconds. 2 million seconds is about 23 days. It takes so long to recharge such a small order, so more orders will take longer. So I think of the multithreading of java. If I open 100 threads, I can process 100 orders in parallel at a time, which is more efficient. Then I want to ask whether php can meet the requirement of multi-task parallel processing such as java multithreading. If possible, which is more advantageous and efficient for multitasking between PHP and java? Hope java Daniel and php Daniel answer

It's the same with

PHP to start 100th processes. Considering that your top-up is network IO waiting, it may be more appropriate to use


php to use Swoole2.0+


java. Php is single-threaded without plug-ins.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e94877-14e3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e94877-14e3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?