Question 1 of 6 · CIE-1 QB · Set 2 · 2 marks
Open in ChatGPTExplain in short about Code Migration. What is code migration?
Code migration is the movement of a running program from one node to another.
- Weak migration: only the code moves; the process restarts with a fresh state.
- Strong migration: the code and its execution state (stack, registers) move, so execution resumes where it stopped.
- Who initiates: sender-initiated (push), receiver-initiated (pull), or the process itself.
- Used for: load balancing, moving computation closer to data, and mobile agents.
- Difficulty: open sockets, file handles and locks cannot simply be copied to the new node.