Jay Yao
Jay Yao

Reputation: 51

Does EPOLLEXCLUSIVE option work with multiple processes?

I'm now working with a server using fork to generate multiple processes to handle network connections. And I saw EPOLLEXCLUSIVE option in epoll_ctl(). In the page, the option is said show that it works with multiple threads program, but later it is said work with multiple processed program.

So I wonder whether the option can work with multiple processes? (It means only wake up one process for the same epollfd that forked from parent process)

Thanks in advance!

Upvotes: 2

Views: 620

Answers (1)

Jay Yao
Jay Yao

Reputation: 51

I find an article about this question here finally, and the answer is yes, it can work with multiple process.

The link is https://mvitolin.wordpress.com/2015/12/05/endurox-testing-epollexclusive-flag/

Upvotes: 3

Related Questions