面向事件编程的时候, 经常遇到 poll 这个单词, 该怎么理解?

2021-04-13 15:00:11 +08:00
 DinoStray

查了字典, 这个词是 投票 的意思, 还是悟不透

1284 次点击
所在节点    问与答
9 条回复
namelosw
2021-04-13 15:01:12 +08:00
一般指轮询
namelosw
2021-04-13 15:01:37 +08:00
也有池的意思,线程池之类的
InternetExplorer
2021-04-13 15:02:33 +08:00
轮询,什么投票 ╮(╯_╰)╭
namelosw
2021-04-13 15:04:47 +08:00
#2 说错了 池是 pool
whisp
2021-04-13 15:08:36 +08:00
a study in which people are asked for their opinions about a subject or person
可以理解为对所有人进行询问,得到的回复就是 poll 的结果
youmoo
2021-04-13 15:11:24 +08:00
维基百科上有词条专门解释了这个。我抽取 2 句吧:

1. Polling, or polled operation, in computer science, refers to actively sampling the status of an external device by a client program as a synchronous activity. Polling is most often used in terms of input/output (I/O), and is also referred to as polled I/O or software-driven I/O.

2. Polling is the process where the computer or controlling device waits for an external device to check for its readiness or state, often with low-level hardware.

简单地说,poll 是(主动地)检查外部设备的(就绪)状态。这里的外部设备不一定指硬件,只要有(多种)状态,都可以拿来 poll 。
superrichman
2021-04-13 15:25:04 +08:00
bluekylin360
2021-04-13 18:04:42 +08:00
言简意骇翻译成中文表达应该如何写呢?
MintZX
2021-04-14 08:36:22 +08:00
@bluekylin360 探询

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/770339

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX