On Tue, Mar 04, 2014 at 04:51:15PM -0800, Andi Kleen wrote:> Anything else?If it was possible to make the time remaining in the current timesliceavailable to userspace through the vdso, the thread could do something like:if (sys_timeleft() < CRITICAL_SECTION_SIZE) yield();lock();to avoid running out of timeslice in the middle of the critical section. - Kevin