5
I asked that question here at Stack Ooverflow:
What is the solution for asynchronous PHP processes?
I did it because I wanted that in the middle of a process execution, I wanted to have a certain call of a function being executed on the other plane, without needing that the script wait for the end of the execution to be completed.
Talking to a friend about the subject of "PHP has no asynchronism", I was worried that I was confusing the use of threads asymptomatic.
I have several questions on the subject:
There is a relationship between threads and those asynchronous calls/processing (which usually used keywords
await
orasync
), which exist in languages such as C#, Python and Nodejs? If different, what are they?What would be a multithreaded? Also has some relationship with asynchronous processing?
I understood right or, in these languages, the call of
await
orasync
cause the program to terminate execution, while the function continues running in the background, or actually the asynchronism means that the function will only not be executed in the code’s writing order (as in a definition ofsetTimeout
in Javascript)?
I’m asking this because to me, which I program in PHP, it seemed to be all the same :p