Machine-translated by Google. Questions are authored in English.
Top

Discussion

A kernel with a 10 ms tick asked to delay a task by 1 ms will

  • A.delay it by exactly 1 ms using a hardware timer
  • B.refuse the request outright as being below its available resolution
  • C.delay it by 10 ms exactly in every case
  • D.delay it by up to a whole tick, the resolution being 10 ms

Answer: D

Correct answer: delay it by up to a whole tick, the resolution being 10 ms

A delay expires on a tick, and the request arrives at an arbitrary point within one, so the actual delay lies between the requested value and that value plus a tick. Asking for less than a tick therefore yields anything up to 10 ms, and shorter delays need a hardware timer rather than the kernel.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.