Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
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
Comments
Sergey Alexandrovich Kryukov 31-Jul-12 16:33pm    
Well, hot do you think? :-)
--SA

1 solution

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900