当前位置:网站首页>Tencent always takes epoll, which is annoying
Tencent always takes epoll, which is annoying
2022-07-01 12:41:00 【Tao song remains the same】
Tencent takes the exam every time during the interview epoll, No kidding , Very annoying .
Many interviewers' own knowledge does not evolve , I only remember one every day epoll, What else ?
[email protected]:~$ man epoll
EPOLL(7) Linux Programmer's Manual EPOLL(7)
NAME
epoll - I/O event notification facility
SYNOPSIS
#include <sys/epoll.h>
DESCRIPTION
The epoll API performs a similar task to poll(2): monitoring multiple file descriptors to see if I/O is possible on any of
them. The epoll API can be used either as an edge-triggered or a level-triggered interface and scales well to large num[m
bers of watched file descriptors. The following system calls are provided to create and manage an epoll instance:
* epoll_create(2) creates an epoll instance and returns a file descriptor referring to that instance. (The more recent
epoll_create1(2) extends the functionality of epoll_create(2).)
* Interest in particular file descriptors is then registered via epoll_ctl(2). The set of file descriptors currently reg[m
istered on an epoll instance is sometimes called an epoll set.
* epoll_wait(2) waits for I/O events, blocking the calling thread if no events are currently available.
Level-triggered and edge-triggered
The epoll event distribution interface is able to behave both as edge-triggered (ET) and as level-triggered (LT). The dif[m
ference between the two mechanisms can be described as follows. Suppose that this scenario happens:
1. The file descriptor that represents the read side of a pipe (rfd) is registered on the epoll instance.
2. A pipe writer writes 2 kB of data on the write side of the pipe.
3. A call to epoll_wait(2) is done that will return rfd as a ready file descriptor.
4. The pipe reader reads 1 kB of data from rfd.
5. A call to epoll_wait(2) is done.Actually , This is the title of the eight part essay , It doesn't mean much. .
边栏推荐
- (混更一篇)多个txt文本转一个表格
- 使用nvm管理nodejs(把高版本降级为低版本)
- Teach you to complete the actual battle of image classification hand in hand -- Image Recognition Based on convolutional neural network
- 【脑洞大开】《西潮》及《走向世界丛书》
- How to install php7 and perform performance test using yum
- 【历史上的今天】7 月 1 日:分时系统之父诞生;支付宝推出条码支付;世界上第一支电视广告
- Perl 5.10.0 installation package download
- Share several tools for designing exquisite circuit diagrams
- Stack-------
- 强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
猜你喜欢

【20211129】Jupyter Notebook遠程服務器配置
![[Suanli network] technological innovation of Suanli Network -- key technology of operation service](/img/80/6e3648c88d309516d4bc29db9c153c.jpg)
[Suanli network] technological innovation of Suanli Network -- key technology of operation service

"Analysis of 43 cases of MATLAB neural network": Chapter 40 research on prediction of dynamic neural network time series -- implementation of NARX based on MATLAB
![[speech signal processing] 3 speech signal visualization -- prosody](/img/06/5f57f9dfe3a0f2f70022706f7d4d17.jpg)
[speech signal processing] 3 speech signal visualization -- prosody

Sort out relevant contents of ansible

基因检测,如何帮助患者对抗疾病?

Ikvm of toolbox Net project new progress

第十四章 信号(四)- 多进程任务示例

logstash报错:Cannot reload pipeline, because the existing pipeline is not reloadable

Chapter 14 signals (IV) - examples of multi process tasks
随机推荐
[datawhale202206] pytorch recommendation system: recall model DSSM & youtubednn
QT 播放器之列表[通俗易懂]
ROS2 Foxy depthai_ros教程
[20211129] jupyter notebook remote server configuration
[20220605] Literature Translation -- visualization in virtual reality: a systematic review
What are the solutions for session sharing of highly paid programmers & interview questions series 118?
2022-06-28-06-29
Application of stack -- bracket matching problem
Eurake partition understanding
Logstash error: cannot reload pipeline, because the existing pipeline is not reloadable
ustime写出了bug
阿霍的三个阶段
ASP.NET Core 6 从入门到企业级实战开发应用技术汇总
[some notes]
AI matting tool
Ansible Playbook
网络socket的状态要怎么统计?
腾讯黎巍:深耕“监管科技”,护航数字经济行稳致远
leetcode:226. 翻转二叉树【dfs翻转】
SQLAlchemy在删除有外键约束的记录时,外键约束未起作用,何解?