World Library  
Flag as Inappropriate
Email this Article

Code mobility

Article Id: WHEBN0015851275
Reproduction Date:

Title: Code mobility  
Author: World Heritage Encyclopedia
Language: English
Subject: Grid computing, Distributed computing
Collection: Distributed Computing Architecture
Publisher: World Heritage Encyclopedia

Code mobility

In distributed computing, code mobility is the ability for running programs, code or objects to be migrated (or moved) from one machine or application to another.[1] This is the process of moving code across the nodes of a network as opposed to distributed computation where the data is moved.

It is common practice in distributed systems to require the movement of code or processes between parts of the system, instead of data.[1]

Examples of code mobility include scripts downloaded over a network (for example JavaScript, VBScript), Java applets, ActiveX controls, Flash animations, Shockwave movies (and Xtras), and macros embedded within Microsoft Office documents.[2]


  • Overview 1
  • Implementations 2
  • See also 3
  • References 4


The purpose of code mobility is to support sophisticated operations. For example an application can send an object to another machine, and the object can resume executing inside the application on the remote machine with the same state as it had in the originating application.

Code mobility can be either Strong or Weak
  • Strong code mobility involves moving the code, data and the execution state from one host to another. This is important in cases where the running application needs to maintain its state as it migrates from host to host.
  • Weak code mobility involves moving the code and the data only. This may necessitate restarting the execution of the program at the destination host.
Several paradigms, or architectural styles, exist within code mobility
  • Remote evaluation — A client sends code to a remote machine for execution.
  • Code on demand — A client downloads code from a remote machine to execute locally.
  • Mobile agents — Objects or code with the ability to migrate between machines autonomously.


Within code mobility, the Mobile Agent paradigm has conventionally attracted the most interest and research,[3] however some recent work has produced general purpose implementations.[4]

Mobile agent frameworks
General purpose
  • Mobility-RPC — Mobile agent, remote evaluation, code on demand, RPC, Java [4]

See also


  1. ^ a b c d
  2. ^
  3. ^
  4. ^ a b
  5. ^
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.