3 ms·
Coroutines do not mean that you get parallel execution. Concurrency is not the same as parallelization. If PHP does not have JIT, then it's nowhere near the sp
by codesushi42 7y ago
Coroutines do not mean that you get parallel execution. Concurrency is not the same as parallelization.
If PHP does not have JIT, then it's nowhere near the speed of Java. Even if it did, Java would likely beat it significantly. I would encourage you to read about Java's Hotspot VM and its adaptive optimizations.
- kamranjon 7y agoMultithreading is not strictly parallelism, typical discussions of multithreading regard concurrency, and multithreading is what you initially asked about. PHP 7.4 will ship with a JIT as an experimental feature and PHP 8 will ship with it built in standard.
- codesushi42 7y agoMultithreading in Java means parallelism, which is what I was originally asking about. You're confused. Nowhere did I claim that multithreading always means parrelalism.