Programming || Synchronous and Asynchronous ||

in hive-175254 •  8 months ago 

Greeting everyone @i-am-ejaaz from #Pakistan

Today I am going to write about programming techniques, and first let me tell you that programming is the process of writing a program. A program is written code that a computer can directly understand. Many high-level programming languages are variables that we can use to write computer programs so that the computer can understand the instructions we give it. The topic is the difference between synchronous programming and asynchronous programming, so first let's talk about synchronous programming. Executes at its specific period. Whenever a task is executing, all other tasks are suspended during its execution, and until it completes the running task, they cannot be executed as soon as the running task is completed. If so, another task is executed immediately after its completion; in this way, all the tasks are executed in turn, and only one task is executed at a time.

prog.jpg

cource

Whereas in asynchronous programming, this is not the case; here, the technique is completely different. In asynchronous programming, tasks are independent, and different tasks are executing at the same time as they are defined. Here, each task is independent, and when a task is executing, its parallel There may also be a possibility that another task is executing or that a third task is also executing. Synchronous programming is easy to understand and implement. Asynchronour programming is complex to understand and implement, but it is smooth and fast as it maintains a ready connection and does not drop the connection. Python, Java, C++, and TypeScript are some examples of programming languages, and there are many other programming languages that you can use to write computer programs.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

image.png