lkml.org 
[lkml]   [2005]   [May]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 14 May 2005 11:37:29 +0100
Fromchristos gentsis <>
SubjectRe: Y2K-like bug to hit Linux computers! - Info of the day
jnf wrote:

>submission$ cat test.c
>int main(void) {
>        signed short int count = 0;
>
>        while(count >= 0 ) {
>                printf("count: %d\n", count++ );
>        }
>        printf("count: %d\n");
>}
>submission$ gcc -o test test.c
>submission$ ./test
>[...]
>count: 32767
>count: -1
>
> 
>
correct but i didn't mean that... i mean how to become negative with out
an overflow...

>I could be wrong here, but I don't think the hardware even keeps track of
>the clock ticks, rather it just ticks and lets the software keep track.
>
> 
>
it has to have hardware because if there is not so how the time is
updated then the system is turned off? ;)
it has to be hardware that keeps working...


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-14 12:19    [from the cache]
©2003-2008