+ /**
+ * Set scheduler timeout and add file descriptors to fd sets.
+ *
+ * This function is used to control the timeout value for select. It
+ * only allowed to decrease the current value. The second purpose of
+ * this function is to set file descriptors to be watched by the
+ * subsequent select call to the two fd sets.
+ */