jonnyhsy's recent timeline updates
jonnyhsy

jonnyhsy

🏢  Software Engineer
V2EX member #143224, joined on 2015-10-19 13:06:20 +08:00
jonnyhsy's recent replies
Jun 26, 2021
Replied to a topic by hunk 区块链 区块链开发,自学入场还有机会不?
@hunk 学学 solidity 智能合约开发,可以远程工作的
Jun 5, 2021
Replied to a topic by hunk 区块链 区块链开发,自学入场还有机会不?
是开发不,在哪个城市?
Jun 5, 2021
Replied to a topic by dahaibanfeiwu 区块链 DApp 过度授权原理溯源
钱包其实是有责任的,风险提示没到位。MetaMask 貌似还是用下来最好的
尼玛你们这些 low B! 能穿越回去当然是买彩票买房子买比特币阿!学你妹的毛线阿!
上面说的有问题。。 select 是阻塞 IO , process 会等待在 select() syscall 上, select()返回表示监听的某个 file descriptor 发生了事件,具体是哪个 file descriptor, select 采用轮询所有的 file descriptor...
同步 /异步和阻塞 /非阻塞是两码事。除了 Windows 的 IOCP IO model ,其他的网络 syscall 都会在 copy data from kernel space to user space 那等待,不同的是在于从发出 IO 请求到 IO 数据准备好这段时间内,发出请求的 process 是不是可以接下去做其他事,显然 select/poll/epoll 都是可以的,所以它们是非阻塞 IO 。 epoll 监听的 file descriptor 绑定了 callback, 当某个 file descriptor 有事件发生时,用 callback 来唤醒,而不是像 select 那样需要 poll 所有的监听的 file descriptor ,所以在这个意义上来说, epoll 是异步 IO.
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1600 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 16:26 · PVG 00:26 · LAX 09:26 · JFK 12:26
♥ Do have faith in what you're doing.