出格是什么意思| 人死后为什么要守夜| 瘦人吃什么长胖| 什么是间质瘤| 生蚝什么时候最肥| 乙肝145阳性是什么意思| 惶恐是什么意思| 脾的作用是什么| 什么叫打飞机| 12点到1点是什么时辰| 女人得性瘾什么症状| 秒杀是什么意思| 华萨尼男装是什么档次| 丑时是什么时间| 视功能是什么| 子宫复旧是什么意思| 糖筛和糖耐有什么区别| 呼吸机vt代表什么| 尿液检查白细胞高是什么原因| 外来猫进家有什么预兆| 食物中毒拉肚子吃什么药| 认识是什么意思| 什么是苏打水| 堂哥的女儿叫什么| 神采奕奕是什么意思| 处级是什么级别| 为什么不能天天做有氧运动| 衣原体感染是什么病| 口干吃什么药| 什么是半衰期| 什么是权力| 血糖高吃什么水果好能降糖| 角色扮演是什么意思| 花千骨什么时候上映的| 377是什么| 土地出让和划拨有什么区别| 叛逆期是什么意思| 乌梅是什么| 遇上方知有什么意思| 白带呈绿色是什么原因| 77年属什么生肖| 钡餐是什么| 鸟屎掉手上有什么预兆| 呼吸内镜检查什么| 蛇跟什么生肖最配| 12月10日什么星座| 生发吃什么食物好| 晚上八点多是什么时辰| 5月7号是什么星座| 大圣归来2什么时候上映| a股是什么| 沉香手串有什么好处| 多吃丝瓜有什么好处和坏处| bgb是什么意思| 什么是冰种翡翠| 宫颈炎吃什么药好| cr值是什么| 婴儿黄疸母亲忌口什么| 神经过敏是什么意思| 同位分是什么意思| 蛋糕用什么奶油好| uspoloassn是什么牌子| 血压高吃什么药最好| 什么东西泡水喝降血压| 九三年属什么生肖| 马革裹尸什么意思| 驳什么意思| 吃荔枝有什么好处| 老豆腐和嫩豆腐有什么区别| 脸颊红是什么原因| 吃阿莫西林过敏有什么症状| 复原乳是什么意思| 郡肝是什么| 产后复查挂什么科| 中校是什么级别| 戊戌是什么意思| 骨质增生是什么| 住院带什么必备物品| 想飞上天和太阳肩并肩是什么歌| 男人梦见蛇是什么意思| 婊子是什么| 一年四季都盛开的花是什么花| 吃什么水果降火最快| 玫瑰花茶有什么作用| 圆脸适合什么眼镜| 蟹柳是什么做的| 7月11日是什么日子| hbr是什么意思| 十滴水是什么| 什么眼睛| 腋下疼痛是什么原因| 乌龟和鳖有什么区别| 乳房痒是什么原因| 山东古代叫什么| 牛肉跟什么炒好吃| 柳条像什么| 青豆是什么豆| 知进退明得失什么意思| 肺结核咳血是什么程度| ac是胎儿的什么| 包皮溃烂用什么药| 芡实适合什么人吃| 人活着的意义是什么| 南乳是什么| 痛风是什么病| 手指甲有竖纹什么原因| 苏格兰牧羊犬吃什么| 女人绝经后靠什么排毒| 颜面扫地什么意思| 宫颈炎是什么| 脚底抽筋是什么原因引起的| 捋一捋是什么意思| 阴道出血吃什么药| 舍我其谁是什么意思| 入驻是什么意思| 补白蛋白吃什么食物最快最好| 小孩出汗多是什么原因造成的| 低血压是什么原因| 什么时候喝蜂蜜水最好| 手上长小水泡很痒是什么原因| 雪蛤是什么| 任劳任怨是什么生肖| 钵钵鸡是什么| 吃什么可以补黄体酮| 什么是鸡奸| 结婚50年是什么婚| 黑眼圈是什么原因导致的| 别人梦见我死了是什么意思| 苏联什么时候解体| 三观不合是什么意思| 紫苏叶有什么作用| 反刍是什么意思| 口腔溃疡吃什么消炎药| 蚊子不咬什么血型的人| 喝藏红花有什么好处| 什么是高血脂| aoc是什么意思| 同心同德是什么意思| 浪凡算是什么档次的| b族维生素什么时候吃效果最好| 梦见好多虫子是什么意思| 腹股沟疝气挂什么科| 退烧药吃什么| 躁动是什么意思| 二月八号是什么星座| 芋圆是用什么做的| 双子座和什么座最配对| 咳嗽吐血是什么原因| 男性尿路感染吃什么药| 结膜出血用什么眼药水| 碳酸饮料喝多了有什么危害| 身上汗味重是什么原因| 败火是什么意思| design是什么品牌| 阿胶是什么做的| 食欲亢进是什么意思| 产妇吃什么鸡最好| 在什么中间| 大卡是什么意思| 孟德是什么意思| 党参和丹参有什么区别| 吃什么容易长高| 梦见红色的蛇是什么意思| 一九三七年属什么生肖| bf是什么| 1986年属什么生肖| 眼睛胀疼是什么原因| 伐木是什么意思| 喉咙发炎吃什么| 假释是什么意思| 肾虚挂什么科| 为什么会有黑眼圈| 原是什么意思| size是什么意思| 全身痒是什么病的前兆| 咳嗽吐黄痰吃什么药| 一什么云彩| 1951年属什么生肖| 万能受血者是什么血型| 什么时候血压最高| 牙龈出血吃什么| hpv16阳性是什么意思| 1968属什么生肖| 乌龟能吃什么| 孕妇鼻子出血是什么原因| 糖化血红蛋白是检查什么的| 阴茎硬度不够吃什么好| 四川古代叫什么| 眉中间有竖纹代表什么| 吃什么水果好| 精神出轨是什么意思| 才高八斗是什么动物| 刀子嘴豆腐心是什么意思| 端午节有什么活动| 儿童中暑吃什么药| 虹吸是什么意思| 工字可以加什么偏旁| 刘诗诗是什么样的人| hr过高是什么意思| 科学的尽头是什么| 排卵期后是什么期| 来月经可以吃什么水果好| 217是什么意思| 做爱吃什么药| 狗与什么属相相冲| 大脚趾发黑是什么原因| 吃什么能消除囊肿| 口里有甜味是什么原因| 喝酒过敏是什么原因| 二月初四是什么星座| 面首是什么意思| 缘分使然是什么意思| 怀孕甲减对孩子有什么影响| 肠胃紊乱吃什么药| 螳螂捕蝉黄雀在后是什么意思| 老白茶属于什么茶| 摄影三要素是什么| 房速与房颤有什么区别| 沟壑什么意思| 口水臭是什么原因| 六个月宝宝可以吃什么水果| 4.20什么星座| 土耳其烤肉是用什么肉| 龙骨是什么东西| 伊玛目是什么意思| 鼻子流黄水是什么原因| 姑姑家的儿子叫什么| 7月1号是什么节日| 91年出生属什么生肖| 清朝前面是什么朝代| 先天性是什么意思| 肠胃炎吃什么药效果好| 肾囊肿有什么症状表现| 请辞是什么意思| 7.23什么星座| 螨虫用什么药可以杀死它| 脉弦是什么意思和症状| 疑问是什么意思| 羊齿状结晶代表什么| 讨吃货什么意思| 早晨起来口苦什么原因| 小五行属什么| 右手背长痣代表什么| 一般什么意思| 笑话是什么意思| 抹茶色是什么颜色| 芝士可以做什么美食| 避孕套玻尿酸的作用是什么| 孕妇可以吃什么感冒药| asics是什么牌子| 小孩呕吐吃什么药| 早上起床口苦吃什么药| 智齿痛吃什么药| 24节气是什么| 水泡型脚气用什么药好| 超声是什么检查| 1997年7月1日属什么生肖| 腱鞘炎有什么治疗方法| 棕色是什么颜色| 儿童测骨龄挂什么科| 减肥去医院挂什么科| 脸颊两边长痘痘是什么原因引起的| 不什么不| 脸霜什么牌子的好| 百度Jump to content

网友大阪偶遇野生版陈伟霆 主动问要不要合照超宠粉

From Wikipedia, the free encyclopedia
百度 半城市化地区位于城市与农村的过渡地段,是城乡二元体制的集中体现地区,是城市空间扩张的前沿板块,也是城乡统筹发展的抓手和突破点。

Polling, or interrogation, 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. A good example of hardware implementation is a watchdog timer.

Description

[edit]

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. For example, when a printer is connected via a parallel port, the computer waits until the printer has received the next character. These processes can be as minute as only reading one bit. This is sometimes used synonymously with 'busy-wait' polling. In this situation, when an I/O operation is required, the computer does nothing other than check the status of the I/O device until it is ready, at which point the device is accessed. In other words, the computer waits until the device is ready. Polling also refers to the situation where a device is repeatedly checked for readiness, and if it is not, the computer returns to a different task. Although not as wasteful of CPU cycles as busy waiting, this is generally not as efficient as the alternative to polling, interrupt-driven I/O.

In a simple single-purpose system, even busy-wait is perfectly appropriate if no action is possible until the I/O access, but more often than not this was traditionally a consequence of simple hardware or non-multitasking operating systems.

Polling is often intimately involved with very low-level hardware. For example, polling a parallel printer port to check whether it is ready for another character involves examining as little as one bit of a byte. That bit represents, at the time of reading, whether a single wire in the printer cable is at low or high voltage. The I/O instruction that reads this byte directly transfers the voltage state of eight real world wires to the eight circuits (flip flops) that make up one byte of a CPU register.

Polling has the disadvantage that if there are too many devices to check, the time required to poll them can exceed the time available to service the I/O device.

Algorithm

[edit]

Polling can be described in the following steps:

Host actions:

  1. The host repeatedly reads the busy bit of the controller until it becomes clear (with a value of 0).
  2. When clear, the host writes the command into the command register. If the host is sending output, it sets the write bit and writes a byte into the data-out register. If the host is receiving input, it reads the controller-written data from the data-in register, and sets the read bit to 0 as the next command.
  3. The host sets the command-ready bit to 1.

Controller actions:

  1. When the controller notices that the command-ready bit is set, it sets the busy bit to 1.
  2. The controller reads the command register. If the write bit inside is set, it reads from the data-out register and performs the necessary I/O operations on the device. If the read bit is set, data from the device is loaded into the data-in register for the host to read.
  3. Once the operations are over, the controller clears the command-ready bit, clears the error bit to show the operation was successful, and clears the busy bit.

Types

[edit]

A polling cycle is the time in which each element is monitored once. The optimal polling cycle will vary according to several factors, including the desired speed of response and the overhead (e.g., processor time and bandwidth) of the polling.

In roll call polling, the polling device or process queries each element on a list in a fixed sequence. Because it waits for a response from each element, a timing mechanism is necessary to prevent lock-ups caused by non-responding elements. Roll call polling can be inefficient if the overhead for the polling messages is high, there are numerous elements to be polled in each polling cycle and only a few elements are active.

In hub polling, also referred to as token polling, each element polls the next element in some fixed sequence. This continues until the first element is reached, at which time the polling cycle starts all over again.

Polling can be employed in various computing contexts in order to control the execution or transmission sequence of the elements involved. For example, in multitasking operating systems, polling can be used to allocate processor time and other resources to the various competing processes.

In networks, polling is used to determine which nodes want to access the network. It is also used by routing protocols to retrieve routing information, as is the case with EGP (exterior gateway protocol).

An alternative to polling is the use of interrupts, which are signals generated by devices or processes to indicate that they need attention, want to communicate, etc. Although polling can be very simple, in many situations (e.g., multitasking operating systems) it is more efficient to use interrupts because it can reduce processor usage and/or bandwidth consumption.

Poll message

[edit]

A poll message is a control-acknowledgment message.

In a multidrop line arrangement (a central computer and different terminals in which the terminals share a single communication line to and from the computer), the system uses a master/slave polling arrangement whereby the central computer sends message (called polling message) to a specific terminal on the outgoing line. All terminals listen to the outgoing line, but only the terminal that is polled replies by sending any information that it has ready for transmission on the incoming line.[1]

In star networks, which, in its simplest form, consists of one central switch, hub, or computer that acts as a conduit to transmit messages, polling is not required to avoid chaos on the lines, but it is often used to allow the master to acquire input in an orderly fashion. These poll messages differ from those of the multidrop lines case because there are no site addresses needed, and each terminal only receives those polls that are directed to it.[1]

See also

[edit]

References

[edit]
  1. ^ a b "Multi-Drop Polling". RAD Data Communications/Pulse Supply. 2007. Archived from the original on 2025-08-06. Retrieved 2025-08-06.
汤圆和元宵有什么区别 大便拉不出来什么原因 喝牛奶什么时候喝最好 吃榴莲对身体有什么好处 高硼硅是什么材质
什么是腔梗 属龙什么命 鱼油什么时间吃最好 手淫过度有什么症状 过敏性紫癜有什么症状
什么花是红色的 荔枝有什么功效 二狗是什么意思 外婆的弟弟叫什么 爵迹小说为什么不写了
胸口闷痛什么原因引起的 星期三左眼皮跳是什么预兆 梦见吃粉条是什么预兆 部分空蝶鞍是什么意思 金陵十二钗是什么意思
荔枝有什么作用hcv9jop5ns0r.cn 88年什么命hcv9jop2ns6r.cn 处女什么意思hcv8jop8ns3r.cn 蛇鼠一窝什么意思hcv8jop1ns0r.cn 低温是什么原因引起的0735v.com
晚上睡觉牙齿出血是什么原因hcv8jop3ns9r.cn 孕妇缺碘吃什么补最快hcv8jop8ns2r.cn 135是什么意思shenchushe.com 夜字五行属什么gysmod.com 什么蚊子咬人mmeoe.com
上海松江有什么好玩的地方hcv7jop6ns4r.cn 根有什么作用hcv7jop5ns3r.cn 娃娃鱼吃什么食物hcv9jop6ns2r.cn 置之死地而后生是什么意思hcv8jop0ns9r.cn 蟹爪兰用什么肥料最好hcv7jop9ns4r.cn
黑五是什么hcv8jop9ns5r.cn 喝牛奶就拉肚子是什么原因hcv7jop9ns5r.cn 摇头是什么病hcv8jop6ns0r.cn 清水文是什么意思hcv8jop1ns1r.cn 吃什么可以健脾养胃mmeoe.com
百度