0

As a part of my assignment, I have to implement a scheduling class. I have written two syscalls, to record the sequence of the processes scheduled by kernel. Based on that data, I have to conclude, if it is Global or Local Scheduling. 1. I have taken and printed jiffies, pid, tid to kernel space. 2. By observing jiffies and sequence of pid and tids, I have to conclude if its global or local scheduling. 3. I have to know the time quantum that kernel allocates for each process.

My Question: Where can I look for that time quantum?

SomeWittyUsername
  • 18,025
  • 3
  • 42
  • 85
Shreyas Kale
  • 65
  • 1
  • 3
  • 8

1 Answers1

1

Jiffies are used to count time units. Time quantum is the number of units the Kernel allocates for process or thread. You can conclude the quantum by observing the jiffies change between process/thread scheduling to run until switch to another process/thread.

SomeWittyUsername
  • 18,025
  • 3
  • 42
  • 85
  • I thought of that as a last option. Although I see changes that appear to be multiples of previous one, (which is the quantum), I wanted to confirm that. – Shreyas Kale Dec 01 '12 at 19:53