CPU friendly socket polling