计算机应用 ›› 2011, Vol. 31 ›› Issue (08): 2075-2078.DOI: 10.3724/SP.J.1087.2011.02075

• 先进计算 • 上一篇    下一篇

新的普适计算环境下上下文缓存置换算法

王斌1,邹文1,盛津芳1,孙英2   

  1. 1. 中南大学 信息科学与工程学院,长沙410083
    2. 中冶长天国际工程有限责任公司 自动化分院,长沙410007
  • 收稿日期:2011-03-04 修回日期:2011-04-26 发布日期:2011-08-01 出版日期:2011-08-01
  • 通讯作者: 王斌
  • 作者简介:王斌(1973-),男,山西大同人,副教授,博士,主要研究方向:软件工程;邹文(1986-),男,湖南娄底人,硕士研究生,主要研究方向:上下文感知计算;盛津芳(1971-),女,湖南长沙人,副教授,博士,主要研究方向:基于构件的软件工程;孙英(1963-),男,湖南长沙人,教授级高级工程师,硕士,主要研究方向:控制理论、控制工程。
  • 基金资助:

    国家自然科学基金资助项目(60970039);湖南省自然科学基金资助项目(07JJ6124)

New context caching replacement algorithm in ubiquitous computing

Bin WANG1,Wen ZOU1,Jin-fang SHENG1,Ying SUN2   

  1. 1. School of Information Science and Engineering, Central South University, Changsha Hunan 410083, China
    2. Automation Branch, Zhongye Changtian International Engineering Company Limited, Changsha Hunan 410007, China
  • Received:2011-03-04 Revised:2011-04-26 Online:2011-08-01 Published:2011-08-01
  • Contact: Bin WANG

摘要: 由于普适计算环境高度动态的特点以及无线环境连接易中断、传输速度低等方面的约束,使得普适计算应用对于上下文的访问开销非常大。为此,首先给出一个上下文感知系统框架,然后提出了一种基于规则的上下文缓存置换算法——RCRA,算法根据上下文的被访问概率、上下文时效性及历史访问次数决定是否将其置换出缓存。当有新的上下文需要进入缓存时执行该算法,以保证缓存中的上下文最新且最有价值。实验表明,RCRA不仅在命中率方面有较大提高,而且能够有效降低上下文访问的开销。算法应用于基于推理规则的上下文感知系统中,具有良好的可实用性。

关键词: 上下文感知, 上下文缓存, 缓存置换算法, 上下文价值, 普适计算

Abstract: Due to the high dynamics of pervasive computing environment and the constraints of easy interruption and low transmission rate of wireless network, the overhead of context access is very huge. To solve these problems, a framework of context-aware system was proposed in this paper, and then a context caching replacement algorithm based on rules (RCRA) was introduced. The proposed algorithm determined whether to replace a context in the cache based on its access probability, timeliness and access history. When a new context was to get into the context cache, the algorithm was used to ensure that the latest and the most valuable context stayed in the cache. The experimental results show that the RCRA improves the hit rate and effectively reduces the overhead of context access. The RCRA is used in the rules-based context-aware system, and the algorithm has good utility.

Key words: context-aware, context cache, cache replacement algorism, context value, ubiquitous computing

中图分类号: