[Minix]Getting system time.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
szarek
Posts: 14
Joined: Thu Sep 04, 2014 9:27 am

[Minix]Getting system time.

Post by szarek »

1. How to get the system time used by the process measured in ticks in one quantum of time?
2.
The user time is the number of clock ticks used by a process on its own
computations. The system time is the number of clock ticks spent inside
the kernel on behalf of a process. This does not include time spent
waiting for I/O to happen, only actual CPU instruction times.
from http://minix1.woodhull.com/manpages/man2/times.2.html
How to get time spent waiting for I/O to happen?
embryo

Re: [Minix]Getting system time.

Post by embryo »

szarek wrote:1. How to get the system time used by the process measured in ticks in one quantum of time?
2.
The user time is the number of clock ticks used by a process on its own
computations. The system time is the number of clock ticks spent inside
the kernel on behalf of a process. This does not include time spent
waiting for I/O to happen, only actual CPU instruction times.
from http://minix1.woodhull.com/manpages/man2/times.2.html
How to get time spent waiting for I/O to happen?
If it is about your OS, then it is about your scheduler capabilities. Just include some statistic holding data structures in your scheduler and populate them with useful data. How exactly to do this depends on how exactly your scheduler works.
Post Reply