I have an assignment where I have to add a system call to the 2.6.3 kernel to both find out what the quatum of the processor is and change it. We can change what they call both MAX_TIMESLICE and MIN_TIMESLICE. I know how to add a system function to the kernel, but does anyone know what variables I am trying to set and how to obtain them. Thank you very much.
My multithreaded terminology is a little shody, so someone correct me, but isn't the quanta the timeslice between thread flips? Wouldn't that make MAX_TIMESLICE and MIN_TIMESLICE the max and min quantum respectively? I don't understand the problem.
That is exactly the problem I am working on. MIN and MAX_TIMESLICE are the time between context switches. I need to know how to query these values and change them. They aren't environment variables, so setenv() and getenv() won't work. If any body knows anything, it would be helpful.