Is it safe to recompile an executable while it's running?

后端 未结 8 2233
再見小時候
再見小時候 2020-12-24 06:36

What happens if I recompile an executable while it\'s running? Does the operating system read all of the executable\'s contents into memory when it starts running it, so it

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-24 06:52

    In Windows you can't if the executable is still running, the file will be locked. If the exe isn't actually running, the new runs should pick up the new one, depending on how your script is coded among other things.

    I don't know about Linux.

提交回复
热议问题