Last year today, Xiao Ming asked me to borrow 100 yuan, but I still haven’t paid the money. During this period, no matter the clouds on the horizon or the coke at hand, it is very like the original 100 yuan. I have invited F4 combination “debt collectors” – synchronous, asynchronous, blocking, non-blocking to help me collect my debt. Let’s meet F4.

F4

Synchronous: strong, healthy, moral, intellectual and physical beauty.

Asynchronous: eyes squint, hands and ears to the sky, rivers and lakes known.

Block: strong as cow, silly silly, next door cow eldest brother.

Non-blocking: King of scrolls, hardy, screen front of you. (PS: Positive meaning)

Debt collection after

Four brothers received a single, a discussion, intend to do their own work, who first to calculate who’s performance.

Synchronous elder brother climbed up at 5 o ‘clock in the morning, directly blocked in xiaoming’s door, swear that unless Xiaoming gives money otherwise it has been blocked in the door, let xiaoming where also can’t do anything. Unfortunately, Xiao Ming is a one-upshot. He works at home and buys vegetables from home. Even his girlfriend xiao Hong comes to his home with a phone call. Finally, because Xiaoming was busy with business, he did not go out, resulting in synchronous brother did not even meet.

Asynchronous brother networks and strong and on hand and list of many haven’t connect, commissioned a friend called xiao li, will credit to xiao Ming house, the letter to xiao Ming having the telephone inform him immediately, he will arrange processing immediately back to reply, xiao Ming will also confirm receipt of signal bring asynchronous brother let xiao li. But Xiao Ming is stubborn, directly abandoned after receiving the letter, leading to asynchronous little brother has not received a reply, also failed to deal with this event.

Blocking Han’s career has been dominated by the word “Han.” He knocked on Xiao Ming’s door early in the morning. After Xiao Ming promised to return the money, he thought of nothing but tea and rice. He refused to do one thing at a time, because his motto in life is “do one thing at a time and don’t do anything else until you finish it”.

Mr. Non-blocking is extremely skilled at business, and although he is not the most outstanding of the four brothers, he is, on average, at the top of the list. After telling Xiao Ming to pay back the money, he went to the next collection, but he would come back every hour to ask again, and after not receiving the money, he would go to other places to do other business, and so on.

Finally, with the tireless efforts of Mr. Non-blocking, Ming was overwhelmed and finally returned 50 yuan! Yes, fifty dollars.

evaluation

The receiving platform asked me to evaluate the service, and I made an objective evaluation with integrity.

Starting from the relationship between Xiao Ming and the debt collector:

  • Brother Sync will be waiting for the answer before he receives the reply from Xiao Ming, which means brother Sync can’t do other things until he gets the money to continue other things. But whether Xiao Ming will pay back the money, we don’t know. The relationship between Xiao Ming and Synchronous brother is synchronous.
  • He sent a message asking for the debt, and xiaoming sent back a reply saying “I’ll let you know as soon as I have it”, and then went on to deal with other business. However, whether Xiao Ming returns the money should be judged according to the state he returns later (I have money), which is obviously not received here. The relationship between Ming and his asynchronous brother is asynchronous, but we don’t know if Ming will pay back the money.

From the state of the debt collectors:

  • Blocking Han will be waiting for Ming’s answer until he pays back the money, even if he can go to other business. I said he was blocked. If Xiao Ming never gives the money then he may wait for the “downtime”.
  • Mr. Non – blocking will leave Ming to do other things before Ming is sure to return the money. But he would come back after a period of time and ask Xiao Ming if he had the money. Or be lazy and not return until Ming informs him, depending on Mr. Non-blocking’s decision. Similarly, I said Mr. Non-blocking he’s non-blocking.

The last

Thank you F4 for your cameo.

You often hear that blocking is synchronous and non-blocking is asynchronous, but this is not true. Synchronous and asynchronous are concerned with the communication mechanism between two things, that is, it is relative to two things. Blocking and non-blocking focus on the state of waiting for the result, which is its own problem. But they are the same. Both synchronous and blocking suspend the current thread until a reply is received, while asynchronous and non-blocking process other transactions.

So what do we mean by asynchronous blocking, asynchronous non-blocking, synchronous blocking, synchronous non-blocking?

Ability limit, expression limit, if there is an error, please point out.