RE: kqueue issue in multithreaded environment
RE: kqueue issue in multithreaded environment
- Subject: RE: kqueue issue in multithreaded environment
- From: Leonardo Bernardini <email@hidden>
- Date: Sat, 11 Jun 2011 12:44:35 +0000
- Importance: Normal
My main issue was that, after processing each READ event, I was re-issueing the EVREAD event on the socket (that was indeed useless). Under rare condition, this may be done by two concurrent threads at the same time. This lead me to a kernel lock on the FD until I removed the kevent call at all (not required unless you use ONESHOT). My conclusions was that the kevent call on the same FD by multiple threads can produce a race condition, I cannot find another answer to this puzzle...
From: email@hidden To: email@hidden Subject: RE: kqueue issue in multithreaded environment Date: Sat, 11 Jun 2011 12:44:08 +0000
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden