Messages in this thread | | | From | "Livia Catarina Soares" <> | Subject | More questions | Date | 29 Apr 1999 22:23:08 -0300 |
| |
Dear Colleagues
I have an unsigned long field in the struct_task. The value storaged in that field is "value(t) = value(\tau) + jiffies - current->start_time/ number_of_process", where value(t) is the field in the current time t, value(\tau) is the field value when the process was created and number_of_process is the quantity of active process. This field is updated by each process when it is running.
My questions ...
1- After a little time I read that field "value" and I got the integer: 4294967295. Did I get an overflow ??
2- The jiffies value is at most 2**31. Could happen overflow with this value in the LINUX?? If it happens ... How this situation is solved by LINUX ??
3- A process is created and after...I want to get the time spent with that process from the start until the current time. Is this value equal to "jiffies - current->start_time"? Do you have other suggestion to represent that value??
Thank you again. Best regards, Livia Catarina.
_____________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde você está.
_____________________________________________________________
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |