Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><code>Synchronous</code> in the context of your question means that 2 parts are waiting for each other.<br> For example if you have a client code that makes a request to a server and your code does not continue its processing until the response of the server arrives, then this means that your code is synchronous i.e. synchronous with the response of the server.<br> If your client code makes the request but does not wait for a response and continues its processing and once the response of the request from the server arrives, then your code (in a specific handler for instance) starts to process the response then the handling is asynchronous i.e. the core client processing is asynhronous with the reponse of the server.<br> These terms imply some short of <strong>dependency</strong> since it is not possible to convert a synchronous code to asynchronous if (using the example of client-server) the response is mandatory for the client to continue its processing. </p> <blockquote> <p>Wouldn't something that is "non-blocking" and that allows "the main program flow to continue processing," be synchronized or "occurring at the same time"? It seems like the term synchronous suggests "non-blocking" and asynchronous, "blocking." </p> </blockquote> <p>Wrong interpretation of the terms. It is not the program flow that synchronized. It is different parts that could be (e.g. threads) or could <strong>not</strong> be part of the same program that could be synchronized or not. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload