arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv cs/0210031cs.PLcs.OS
收藏

Weaves可重构编程框架

The Weaves Reconfigurable Programming Framework

Srinidhi Varadarajan

摘要:

本研究提出一种语言无关的进程内框架,用于基于对象的未修改代码模块的组合。直觉,两个主要的编程模型,线程和进程,可以被认为是沿着共享轴的极端。进程中的多个线程共享所有全局状态,而进程的实例(或独立进程)不共享全局状态。Weaves提供了一个通用的框架,允许在一个进程中的多个控制流之间任意(选择性)共享状态。Weaves框架支持单个进程中的多个独立组件,具有灵活的状态共享和调度,所有这些都不需要对现有代码库进行任何修改。此外,该框架允许动态实例化代码模块和通过它们的控制流。实际上,织入从用任何语言编写的代码创建进程内模块(类似于OOP中的对象)。Weaves范式允许对象被任意共享,它是进程和线程的真正超集,具有代码共享和类似于线程的快速上下文切换时间。Weaves不需要语言或应用程序代码的任何特殊支持,实际上任何代码都可以被编织。Weaves还支持快速自动检查点和恢复,而无需应用程序支持。本文介绍了编织框架的元素和结果,从我们的实现,通过反向分析源代码独立的ELF对象文件。目前的实现已经在Sweep 3D上得到了验证,Sweep 3D是3D离散坐标中子输运的基准[Koch等人,1992],以及Linux 2.4系列内核TCP/IP协议栈的用户级端口。

英文摘要:

This research proposes a language independent intra-process framework for object based composition of unmodified code modules. Intuitively, the two major programming models, threads and processes, can be considered as extremes along a sharing axis. Multiple threads through a process share all global state, whereas instances of a process (or independent processes) share no global state. Weaves provide the generalized framework that allows arbitrary (selective) sharing of state between multiple control flows through a process. The Weaves framework supports multiple independent components in a single process, with flexible state sharing and scheduling, all of which is achieved without requiring any modification to existing code bases. Furthermore, the framework allows dynamic instantiation of code modules and control flows through them. In effect, weaves create intra-process modules (similar to objects in OOP) from code written in any language. The Weaves paradigm allows objects to be arbitrarily shared, it is a true superset of both processes as well as threads, with code sharing and fast context switching time similar to threads. Weaves does not require any special support from either the language or application code, practically any code can be weaved. Weaves also include support for fast automatic checkpointing and recovery with no application support. This paper presents the elements of the Weaves framework and results from our implementation that works by reverse-analyzing source-code independent ELF object files. The current implementation has been validated over Sweep3D, a benchmark for 3D discrete ordinates neutron transport [Koch et al., 1992], and a user-level port of the Linux 2.4 family kernel TCP/IP protocol stack.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑