如何准确地同步和异步通信工作 [英] How does Synchronous and Asynchronous communication work exactly

查看:176
本文介绍了如何准确地同步和异步通信工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是想了解这些条件同步和异步通信,但我越来越糊涂了一下。我试着挖了一下成<一个href=\"http://stackoverflow.com/questions/1596589/why-are-asynchronous-processes-not-called-synchronous/\">this但仍存在混乱。我的问题如下:

I was trying to understand the terms Synchronous and Asynchronous communication but i am getting confused a bit. I tried to dig a bit into this but there are still confusions. My questions are as follows:

1.How不同步和异步通信工作的?还参照上述提到的什么是用于异步通信的信号。

1.How does the synchronous and asynchronous communication work? also with reference to the above mentioned what are the signals used for asynchronous communication.

2.How不同步和异步处理的工作?

2.How does the synchronous and asynchronous process work?

要说明这个任何例子是将是有益的。

Any example to illustrate this is would be helpful.

在道歉的情况下,这是一个很简单的问题。我是新来编程。希望你的答案帮助我。在此先感谢!!!!

Apologies in case this is a very simple question. I am new to programming. Hoping your answers help me. Thanks in Advance!!!!

推荐答案

在电话呼叫某人是synchronos。与他沟通每邮件是异步的。

Calling someone on telephone is synchronos. Communicating with him per mail is asynchronous.

同步

当我打电话给你的电话,我拨你的号码和等待,直到你拿起。那你说什么,并在非常同一时刻,我听你的。当你完成了,我送你的数据(和你说话),并在您收到他们(听我说)同一时刻。在我们的通信结束自己人说(再见)传输结束,对方称Acknoledged(再见),然后这两个环了。

When I call you on the phone, I dial your number and WAIT until you pick up. Then you say something, and in the very same moment I listen to you. When you finished, I send you data (talk to you) and in the same moment you receive them (listen to me). At the end of our communication one of us says "END OF TRANSMISSION" (Good Bye), the other says "Acknoledged" (Good Bye) and then both ring off.

异步

我给你写的信。我把它交给邮局,它会被发送给您。我同时我迫不及待。我做很多不同的其他事情。然后您会收到一封信。你读它,而我还是做了许多不同的其他事情。然后,你给我写一个答案,并将其发送给我。在所有这些事情,我不参与。在第二天,我收到来自系统(邮递员)一个(同步)消息(的信号)。它(他)说:这是一个消息要告诉你。我也可以查询我的收件箱每五分钟检查是否有新的信件是存在的。然后我停下我的其他工作,收到你的信,读你的答案。然后,我按照这个答案做一些事情。但是,这件事情你不会注意到,因为你不是在我与你的异步答案做介入。

I write you a letter. I put it to the postoffice, and it will be sent to you. I the meantime I do NOT WAIT. I do many different other things. Then you receive the letter. You read it while I still do many different other things. Then you write me an answer and send it to me. In all those things I am not involved. At the next day I get a (synchronous) message (a signal) from the system (postman). It (he) says: "Here is a message for you". Alternatively I could poll my inbox every five minutes to check if a new letter is there. Then I pause my other work, receive your letter and read your answer. Then I do something according to this answer. But this are things you will not notice, because you are not involved in what I do with your asynchronous answer.

这篇关于如何准确地同步和异步通信工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆