You are not logged in.

#1 2011-01-15 11:17:31

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

[answered] Simple question from a simple mind

Hello all,

I'm wondering.
When we upgrade the kernel for instance. The old one get deleted.
But the computer is running on the old deleted kernel until you reboot.
How does that happen ? And it's the same for all apps in fact.

How an app can be changed while running, and when you restart it, it's the new version.
I mean, if we delete the old version, what is running then ??

I hope someone can enlighten me smile

Last edited by Kooothor (2011-01-15 11:45:58)


ktr

Offline

#2 2011-01-15 11:44:37

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [answered] Simple question from a simple mind

If you delete the old version, while it is running, the stuff that you continue running is preloaded in your ram. If not all libraries are preloaded it's bound to crash at some point, but for the most small programs, they survive in your ram until you restart them.
The same thing goes for the kernel - it's the core of your os and it's kept preloaded in the ram. If you however try to load a new module (modprobe something) it'll probably spun an error "Module not found" since the new kernel is in different directory.
Hope I was clear enough.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#3 2011-01-15 11:45:41

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

Re: [answered] Simple question from a simple mind

Ah ok, so all is in the RAM, that is what I suspected, thanks ! big_smile


ktr

Offline

#4 2011-01-15 11:46:34

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: [answered] Simple question from a simple mind

A simplified explanation: When you run a program, all relevant files needed for the call are being loaded and then reside in RAM until the process is done. There is no warranty that every application will run stable after an update. If files are being dynamically loaded during runtime and you change one of those files (say with an update), there might be an error.

However, I never had such an error. We could try to produce one, as a kind of an experiment.

Offline

#5 2011-01-15 23:50:59

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: [answered] Simple question from a simple mind

Interesting question! Never gave this much thought. These kinds of questions make the newbie forum interesting  wink

Last edited by rwd (2011-01-16 00:01:18)

Offline

Board footer

Powered by FluxBB