期刊文献+
共找到3篇文章
< 1 >
每页显示 20 50 100
基于coroutine模型的网络爬虫设计与实现
1
作者 仇晶 丁任霜 +1 位作者 张光华 张红斌 《河北师范大学学报(自然科学版)》 CAS 2018年第3期205-210,共6页
网络爬虫在中文信息处理中被大量使用,根据待处理的问题定向爬取相关领域的数据,为后续中文信息处理提供基础.传统多线程模型在处理高并发和大量I/O阻塞操作时,存在较为明显的限制和不足.针对以上问题,提出了一种基于coroutine模型的解... 网络爬虫在中文信息处理中被大量使用,根据待处理的问题定向爬取相关领域的数据,为后续中文信息处理提供基础.传统多线程模型在处理高并发和大量I/O阻塞操作时,存在较为明显的限制和不足.针对以上问题,提出了一种基于coroutine模型的解决方案.从coroutine的基本原理和实现方法上作了较为详细的阐述,并给出基于coroutine网络爬虫的完整实现.实验表明,该方案能够有效地降低系统负荷,提高爬虫的爬取效率. 展开更多
关键词 coroutine 爬虫 多线程 阻塞
下载PDF
Improve Image Decoding in Lightweight Environment Using a Coroutines Based Approach
2
作者 Rodrigue Saoungoumi-Sourpele Jean Michel Nlong +1 位作者 Jean-Robert Kala Kamdjoug Glen Vernyuy Yufui 《Journal of Computer and Communications》 2020年第10期60-74,共15页
The JPEG2000 still image compression standard, while providing a remedy for the many shortcomings of its predecessor JPEG, is still slow to establish itself on the Internet. This problem is mainly due to the complexit... The JPEG2000 still image compression standard, while providing a remedy for the many shortcomings of its predecessor JPEG, is still slow to establish itself on the Internet. This problem is mainly due to the complexity of the COder-DECoder (CODEC) which implies its non-adoption by large firms and platforms in the field of image acquisition, processing and transmission. Indeed, the encoding and decoding process consumes a lot of CPU, memory and energy resources and takes a lot of computing time. The objective of this paper is to propose a model for decoding jpeg2000 on lightweight devices running on the Android mobile operating system. This implementation uses coroutines, which are a lightweight process model with reduced resource consumption costs compared to conventional AsyncTask threadsets. The model minimizes decoding time while minimizing CPU and memory usage, resulting in a fast and energetically economical decoded image. The results of integrating the coroutines from the main thread into the decoding process instead of the AsyncTask from the main thread produced better performance in terms of computation time, CPU and memory utilization. Indeed, the use of our model has led to a gain of around 23.41% in execution time, 9.8% in CPU utilization rate and 18.56% in memory utilization rate, compared to the model proposed in the literature which uses the threads. 展开更多
关键词 coroutines JPEG2000 Android THREAD Asynctask
下载PDF
一种面向分布式系统的程序设计模式 被引量:1
3
作者 李慧霸 彭宇行 卢锡城 《计算机工程与科学》 CSCD 2008年第12期142-145,共4页
分布式系统的程序设计模式主要包括多线程模式和事件驱动模式,其中事件驱动模式占据了主导地位。本文讨论了这两种模式的不足,以及Coroutine模式相对它们的优点,并认为Coroutine模式是最适合分布式系统的程序设计模式。本文在此基础上... 分布式系统的程序设计模式主要包括多线程模式和事件驱动模式,其中事件驱动模式占据了主导地位。本文讨论了这两种模式的不足,以及Coroutine模式相对它们的优点,并认为Coroutine模式是最适合分布式系统的程序设计模式。本文在此基础上提出了Libresync,它是一个基于Coroutine模式的分布式系统基础支持库。它既能给应用开发带来非常清晰的控制流程,又具有很高的灵活性和表达力,性能也能满足大多数需求。 展开更多
关键词 分布式系统 并发 多线程 事件驱动 coroutine
下载PDF
上一页 1 下一页 到第
使用帮助 返回顶部