dongxun4110 2017-12-05 11:33 采纳率: 0%
浏览 137
已采纳

为什么我们在php中使用mysqli_poll()函数?

I am totally new to php and mysql. Please can anyone tell why we use mysqli_poll() function in php ?

I found 2 questions on stack overflow:
1) How does mysqli_poll work?
2) mysqli_poll() - what's the third parameter for?

But both are different from my question. In fact i have read them but unable to understand.

Currently i am on php.net for this function and trying to understand the examples but i am too much depressed and failed to understand.

Please can anyone tell me in easy and beginners level, that what is the use of this function in php and mysql. What is means by poll in the sense of mysql database ?

Thanks in advance !!!

  • 写回答

1条回答 默认 最新

  • duanhui5344 2017-12-05 11:53
    关注

    I have a feeling this is a wrapper around a POSIX-style select call, or something similar in nature, that's used to efficiently poll multiple handles for data that can be read.

    Normally select-driven code is deemed to be "polling" when it checks for data ready to be read or handles ready to be written to.

    It's unlikely that most programmers have ever used this function. It has very narrow use cases, you must be juggling a non-trivial number of MySQL handles at once. Most applications use a handful, and often with a connection pool.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 ArcGIS Pro时空模式挖掘工具
  • ¥15 获取到海康hls的视频地址是http协议导致无法正常播放
  • ¥15 seL4如何实现从终端输入数据
  • ¥15 方波信号时频特征分析/信号调制与解调过程分析/利用DFT分析信号频谱
  • ¥20 两台硬件相同的琴设备一个是高阶版,怎么扒到初阶版
  • ¥30 matlab求解周期与坐标
  • ¥15 MATLAB图片转灰度格式问题
  • ¥15 把h5作品链接复制到自己的账号里
  • ¥15 ensp抓包实验配置
  • ¥15 强化学习算法、MRO
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部