简体   繁体   中英

Increase thread quantum from user-mode

Is it possible on Linux kernel 3.0+ to increase thread's quantum from user-mode? How?

I doubt it's possible. I quickly found this page ( http://www.javamex.com/tutorials/threads/thread_scheduling_2.shtml ) which suggests that a thread's quanta length is variable anyway, and subject to many attributes of the execution environment.

I suppose if you really needed to it should be possible to write a kernel module that alters it, but then you're entering painful territory.

What are you doing that needs longer quanta lengths anyway? Maybe there's an alternative approach.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM