Hi,<br><br>'cpu_set_t' should be used instead of 'long' when calling sched_setaffinity(2). Otherwise it may fail on some Linux systems.<br>Please see the attachment for more detail.<br clear="all"><br>Regards,<br>

<br>-- <br>Joshua Zhu<br>
Senior Software Engineer<br>Server Platforms Team at Taobao<br>