Date/Time & CPU/RAM Usage Problem!
Posted: Sun Jun 20, 2004 2:17 am
hi room
i face these problems during my adventure to build my own operating system.
i wish someone here to help me. thank you
the problems are like below
1. i want to display time and date on my operating system
=========================================================
so i guess i will need to use BIOS INT 1AH with function 02 and 04 but how i know the date and time already change? how to continuously update the time and date? i expect myself to run a loop
so, the problem is if we wrote a script like above, will it has the behaviour like script below?
our script will bound to hang the system coz it is infinite loop. we can see the processor usage around 99% on windows task manager before script timeout.
i wish somebody to guide me on this matter. thanks.
i wish to know also what are the popular OS ways to get and display time/date.
2. i wish to know how the obtain the RAM usage and CPU usage information
========================================================================
now how can my os know the CPU usage and RAM usage?
is there any interrupt which provide such information?
if no, what are the method that those OS(s) like FreeBSD, Linux, Windows use to have such information?
i face these problems during my adventure to build my own operating system.
i wish someone here to help me. thank you
the problems are like below
1. i want to display time and date on my operating system
=========================================================
so i guess i will need to use BIOS INT 1AH with function 02 and 04 but how i know the date and time already change? how to continuously update the time and date? i expect myself to run a loop
Code: Select all
while(system_still_on) {
mov_ah = 02 then 04;
int 1a;
}
Code: Select all
$i = 10;
while($i < 20) {
display $i;
}
i wish somebody to guide me on this matter. thanks.
i wish to know also what are the popular OS ways to get and display time/date.
2. i wish to know how the obtain the RAM usage and CPU usage information
========================================================================
now how can my os know the CPU usage and RAM usage?
is there any interrupt which provide such information?
if no, what are the method that those OS(s) like FreeBSD, Linux, Windows use to have such information?