--- In [email protected], "Chandrakant Tiwari" <[EMAIL PROTECTED]>
wrote:
>
> Hi All,
> This is Chandrakant Tiwari.
> 
> I need to write a small program in C which should
> shut down my computer and restart it back 100 times and
> each time it should log the system time in a log file.
> My concern here is once the system will be restarted how
> will that program will get loaded into the system and
> retain the value of program counter and other values?

There is no general answer to this question. Such things can be done,
but it depends completely on the operating system you work with.

So you first have to tell us what OS in which exact version you use,
then you might get some detailed reply.

Regards,
Nico

Reply via email to