阅读背景:

linux中多线程epoll的问题

来源:互联网 

I have a multithread linux program which uses epoll(7). The epoll(7) man page says when one of its fds gets closed, this fd will be automatically removed from the epoll set. My question is what if a fd of the epoll set gets closed in one thread while the epoll set is being polled in another thread concurrently without synchronization. Will the program get corrupted or will the kernel synchronize this access automatically?I have a multithread linux program which uses e




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: