Darwinbots Forum

General => Off Topic => Topic started by: Panda on August 26, 2011, 01:42:01 PM

Title: Operating Systems - Updating Without Shutting down?
Post by: Panda on August 26, 2011, 01:42:01 PM
If you had to write an operating system that updated without shutting down, what method would you use or how would you do it?
Title: Re: Operating Systems - Updating Without Shutting down?
Post by: Botsareus on August 27, 2011, 02:20:13 PM
em, Panda that is like saying: "I am going to give this process to the cpu but it might change its commands during processing"
The way the cpu works right now it really cannot change the instructions of the process during the execution of the process itself.
If you figure out a way to work around that, let me know.  ;)

I hope that was helpful.
Title: Re: Operating Systems - Updating Without Shutting down?
Post by: Shasta on August 27, 2011, 04:13:58 PM
Search hot swapping for literature on what you are asking about. The current darwinbots server can update pretty much everything but the kernel without a full system restart, services do have to be restarted though.
Title: Re: Operating Systems - Updating Without Shutting down?
Post by: Panda on August 28, 2011, 01:35:12 PM
I know with current operating systems you can't do any of this but if you were to re-write everything, how would you do it? :p I'm sure it would be possible, just have to use tricks...
Title: Re: Operating Systems - Updating Without Shutting down?
Post by: Botsareus on August 31, 2011, 05:16:50 PM
I think by "Hot Swapping" Shasta meant:

When there is a need for an update:

A.) The OS loads a copy of all impotent process that maintain the system, with the update.
B.) The OS closes the old versions of those processes.

I just have no idea what the architecture of an OS such as Windows7 really is. You might want to look into Linux which is open source.


Title: Re: Operating Systems - Updating Without Shutting down?
Post by: Panda on September 02, 2011, 08:51:55 PM
I don't need to do it. I was just thinking about it.