Click here to Skip to main content
13,049,263 members (68,187 online)
Rate this:
Please Sign up or sign in to vote.
See more:
This is a very simple question, but I don't know the answer,really. For example:some program on C++ is running, and I modified and compiled it. Program needs to be restarted or not?

P.S.: All this in Ubuntu 12.04 LTS
Posted 31-Jul-12 10:25am
Sergey Alexandrovich Kryukov 31-Jul-12 16:33pm
Well, hot do you think? :-)

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Yes, when you launch a program the instructions are copied into memory, changing the original file won't update it. Plus, how would it switch while it was running? Just because it's on the nth instruction in the original code doesn't mean jumping to that instruction in the new code is a valid state for the program.
Je7 31-Jul-12 16:48pm
Thx. That's all what I want to know.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100