Multithreaded programming has been widely used nowadays, but developing mutlithreaded applications is still a tough task. To alleviate such kind of work we propose a new concept, Smart Active Object, an extension to the normal object in object-oriented technology. Smart Active Object runs concurrently with the main execution logic of the program, leveraging multithreading mechanisms and meanwhile leaves only sequential interfaces for programmers to insert application-specific parts, masking details of multithreading, which eventually enhances programming productivity. To support our claims, we design and implement a framework comprising a collection of cooperative Smart Active Objects for stateful applications, a typical problem in telecom world. Using this framework, we easily solve a toy problem, derived from the behavior of SIP stateful proxy servers within much shorter time than a conventional C version counterpart.
展开▼
机译:如今,多线程编程已被广泛使用,但是开发多线程应用程序仍然是一项艰巨的任务。为了减轻此类工作,我们提出了一个新概念Smart Active Object,它是面向对象技术中普通对象的扩展。 Smart Active Object与程序的主要执行逻辑同时运行,利用多线程机制,同时仅留下顺序接口供程序员插入特定于应用程序的部分,从而掩盖了多线程的细节,从而最终提高了编程效率。为了支持我们的主张,我们设计并实现了一个框架,该框架包含用于状态应用程序的协作智能活动对象的集合,这是电信界的一个典型问题。使用此框架,我们可以轻松解决玩具问题,该问题是由SIP状态代理服务器的行为在比传统C版本对应对象短得多的时间内产生的。
展开▼