Many garbage collection algorithms have been proposed, but few address the special needs of long-running server programs. Server applications usually run for years and spawn many threads, so they create and discard th...Many garbage collection algorithms have been proposed, but few address the special needs of long-running server programs. Server applications usually run for years and spawn many threads, so they create and discard thousands of objects. Therefore, efficient garbage collection is especially important for those applications. This paper presents a class-based garbage collector for object-oriented programming environments that classifies objects by their types to achieve better gradualness. Grouping objects of the same type into a group, with a limited type-lock, a mutator cache and the lease protocol will reduce memory fragmentation, which is especially important for the efficiency of long-running server applications. This class-based collector partitions the heap space by type, which provides better concurrency than the traditional mark-sweep collector, and its reusable garbaged object pool also reduces the object allocation overhead. This paper also discusses the implementation details, such as the mutator cache and the lease protocol, and techniques to achieve better accuracy.展开更多
Semantic-based searching in peer-to-peer(P2P)networks has drawn significant attention recently.A number of semantic searching schemes,such as GES proposed by Zhu Y et al.,employ search models in Information Retrieval(...Semantic-based searching in peer-to-peer(P2P)networks has drawn significant attention recently.A number of semantic searching schemes,such as GES proposed by Zhu Y et al.,employ search models in Information Retrieval(IR).All these IR-based schemes use one vector to summarize semantic contents of all documents on a single node.For example,GES derives a node vector based on the IR model:VSM(Vector Space Model).A topology adaptation algorithm and a search protocol are then designed according to the similarity between node vectors of different nodes.Although the single semantic vector is suitable when the distribution of documents in each node is uniform,it may not be efficient when the distribution is diverse.When there are many categories of documents at each node,the node vector representation may be inaccurate.We extend the idea of GES and present a new class-based semantic searching scheme(CSS)specifically designed for unstructured P2P networks with heterogeneous single-node document collection.It makes use of a state-of-the-art data clustering algorithm,online spherical k-means clustering(OSKM),to cluster all documents on a node into several classes.Each class can be viewed as a virtual node.Virtual nodes are connected through virtual links.As a result,the class vector replaces the node vector and plays an important role in the class-based topology adaptation and search process.This makes CSS very efficient.Our simulation using the IR benchmark TREC collection demonstrates that CSS outperforms GES in terms of higher recall,higher precision,and lower search cost.展开更多
Contextual logic provides a mechanism to reason about modules. In this paper, this theory of modules is extended to a context theory of classes where class is in the true spirit of object-oriented databases. The logic...Contextual logic provides a mechanism to reason about modules. In this paper, this theory of modules is extended to a context theory of classes where class is in the true spirit of object-oriented databases. The logic, referred to as CLOG,is class-based. CLOG supports class, object identity, multiple role of object,monotonic and non-monotonic inheritance of data a-nd method, method factor-ing, views, derived and query classes. Views and derived classes are queries in themselves- Objects are pure data terms representing the ground instances of facts in the class. 'Object identity is a first class term in the logic. Inheritance is handled through delegation.展开更多
基金the National High- Tech Research andDevelopm ent Program of China(No. 30 6 - 0 1- 0 3- 11- 9)
文摘Many garbage collection algorithms have been proposed, but few address the special needs of long-running server programs. Server applications usually run for years and spawn many threads, so they create and discard thousands of objects. Therefore, efficient garbage collection is especially important for those applications. This paper presents a class-based garbage collector for object-oriented programming environments that classifies objects by their types to achieve better gradualness. Grouping objects of the same type into a group, with a limited type-lock, a mutator cache and the lease protocol will reduce memory fragmentation, which is especially important for the efficiency of long-running server applications. This class-based collector partitions the heap space by type, which provides better concurrency than the traditional mark-sweep collector, and its reusable garbaged object pool also reduces the object allocation overhead. This paper also discusses the implementation details, such as the mutator cache and the lease protocol, and techniques to achieve better accuracy.
基金supported in part by the National Science Foundation of USA under Grant Nos.ANI 0073736,EIA 0130806,CCR0329741,CNS 0422762,CNS 0434533,CNS 0531410,CNS 0626240,CCF 0830289,and CNS 0948184
文摘Semantic-based searching in peer-to-peer(P2P)networks has drawn significant attention recently.A number of semantic searching schemes,such as GES proposed by Zhu Y et al.,employ search models in Information Retrieval(IR).All these IR-based schemes use one vector to summarize semantic contents of all documents on a single node.For example,GES derives a node vector based on the IR model:VSM(Vector Space Model).A topology adaptation algorithm and a search protocol are then designed according to the similarity between node vectors of different nodes.Although the single semantic vector is suitable when the distribution of documents in each node is uniform,it may not be efficient when the distribution is diverse.When there are many categories of documents at each node,the node vector representation may be inaccurate.We extend the idea of GES and present a new class-based semantic searching scheme(CSS)specifically designed for unstructured P2P networks with heterogeneous single-node document collection.It makes use of a state-of-the-art data clustering algorithm,online spherical k-means clustering(OSKM),to cluster all documents on a node into several classes.Each class can be viewed as a virtual node.Virtual nodes are connected through virtual links.As a result,the class vector replaces the node vector and plays an important role in the class-based topology adaptation and search process.This makes CSS very efficient.Our simulation using the IR benchmark TREC collection demonstrates that CSS outperforms GES in terms of higher recall,higher precision,and lower search cost.
文摘Contextual logic provides a mechanism to reason about modules. In this paper, this theory of modules is extended to a context theory of classes where class is in the true spirit of object-oriented databases. The logic, referred to as CLOG,is class-based. CLOG supports class, object identity, multiple role of object,monotonic and non-monotonic inheritance of data a-nd method, method factor-ing, views, derived and query classes. Views and derived classes are queries in themselves- Objects are pure data terms representing the ground instances of facts in the class. 'Object identity is a first class term in the logic. Inheritance is handled through delegation.