北大、软件体系结构、作业四
KWIC Implemented with Pipe and Filter Architectural
Style (Assignment 4)
1.
Questions
1. In both modifications of the current system you needed to extend the functionality of the system. Which modules from the original KWIC system did you need to modify to implement the new functionality in both cases? Does this mean that the pipe and filter KWIC system is robust to design changes in the functionality of the system? Is the same true for any pipe and filter system?
解答:在两种情况下都只需修改原系统中的KWIC模块,即调度控制模块。这意味着管道过滤器风格的KWIC系统是十分健壮的。但这并不一定适用于所有采用管道过滤器风格的系统。
2. Filters in pipe and filter systems are completely independent entities. Thus, filters:
a. Do not share state (data) with other filters.
b. Do not know the identity of neighbor filters in the pipeline.
c. Process their data concurrently and incrementally, i.e., they do not wait for other filters to start or finish their jobs.
Would it be possible to implement an interactive version of the KWIC system, which will allow users to delete certain lines from the data flow but still not violate any of the above defined filter properties?
解答:由于无法获知其它过滤器的状态以及流通与管道中的数据,因此无法实现交互式的KWIC系统,若想删除特定行,可增加一个用于删除的过滤器。
3. Normally, filters in pipe and filter systems work as follows. They read data from the input pipe, transform it and write it to the output pipe. Usually, this involves copying of data from the input to the output pipe. If the number of filters in a pipeline of a complex pipe and filter system is large then there is a lot of in-memory data copying. How this may affect the overall system performance?
Assignment3-es-问题解答... assignment4-pf-问题解答...1/2 相关文档推荐 ...解答:实现新的 data representation,需要修改 circularShift()、alphabetizing()、...
EB-5常见问题解答_金融/投资_经管营销_专业资料。什么是美国 EB-5 投资 移民方案? 答:EB-5 投资移民方 案是美国移民法中针 对海外投资移民所设 立的移民签证...
(注:答案不唯一,也可答教材第 23 页的 4 句话) 问题 2:还有哪些动物也像蚕一样,一生要经过几次变化? 答:例如蝴蝶一生要经过四次变态,蚂蚁、蝉一生要经过...
数学问题与解答2014年第4期问题解答_学科竞赛_高中教育_教育专区 暂无评价0人阅读0次下载举报文档 数学问题与解答2014年第4期问题解答_学科竞赛_高中教育_教育...
(4)小结 总结 通过学习,关于空气的组成我们知道了些什么?还想知道什么? 4、空气也是生命之源 一、问题解答 1、下面这些现象说明了什么? 答:这四个例子说明人和...
2014年注册会计师继续教育-审计准则问题解答1 课后练习_韩语学习_外语学习_教育专区。2014年注册会计师继续教育-审计准则问题解答1 课后练习:...
暂无评价 6页 免费 assignment4-pf-问题解答... 暂无评价 4页 1下载券 20078501110 何顺清 Ass... 4页 1下载券喜欢此文档的还喜欢 ...
第 19 页 共 59 页 3DA2006 常见问题解答 清华斯维尔 图 28 斜墙侧壁 4. 问:为什么墙体不扣除飘窗的体积?(中级) 答:原因是布置墙体时布置成“内墙”了,...
学生问题解答_教学案例/设计_教学研究_教育专区。优秀...F1 PF2 ? 1200 ,则椭圆 离心率的取值范围是 ?...4 (1)求椭圆 C2 的方程; (2)设 O 为坐标...
车辆常见问题解答手册_公务员考试_资格考试/认证_教育专区 暂无评价0人阅读0次下载举报文档 车辆常见问题解答手册_公务员考试_资格考试/认证_教育专区。 ...
热门文档