一种数据处理方法和设备技术

技术编号:6052183 阅读:216 留言:0更新日期:2012-04-11 18:40
本发明专利技术公开了一种数据处理方法和设备,该方法包括:根据关键任务的处理时间信息确定定时器中断时间信息;并根据所述定时器中断时间信息对数据进行处理。本发明专利技术实施例中,在网络高负载下,对Linux中关键任务的实时性能影响小,保证关键任务的处理性能。

Data processing method and apparatus

The invention discloses a data processing method and device, the method includes: determining the timer interrupt time according to the information processing time critical mission information; and according to the timer interrupt time information for data processing. The embodiment of the invention has little influence on the real-time performance of the key tasks in the network under the high load of the network, and the processing performance of the critical task is ensured. Linux.

【技术实现步骤摘要】

本专利技术涉及通信
,尤其涉及一种数据处理方法和设备
技术介绍
性能问题是操作系统的重要方面,Linux在网络处理方面的优势非常明显。其中, Linux 具有完善的 TCP (Transmission Control Protocol,传输控制协议)/IP (Internet Protocol,网络互连协议)协议栈的支持,支持大多数网卡设备,而且网络子系统架构中的 Linux对新增的网卡设备驱动和自定义的协议开发,均提供了良好的接口,从而使得软件开发人员即使不了解Linux内核,也能够进行软件开发。现有技术中,NAPI (New Application Interface, Linux基于轮询方式的以太处理接口 ;Linux上采用的一种提高网络处理效率的技术)技术是Linux用于提高网络性能的有效方式,由于高频率的中断可能会影响系统的整体效率,因此在网络繁忙时,NAPI采用轮询方式来替换每次数据包到达时引发的中断。而由于中断处理位于操作系统临界区,因此可减少中断次数,尤其是在高负载时,NAPI可以明显增加Linux对实时任务的响应性能。另外,Linux还采用了 softi本文档来自技高网...

【技术保护点】
1.一种数据处理方法,其特征在于,包括:根据关键任务的处理时间信息确定定时器中断时间信息;并根据所述定时器中断时间信息对数据进行处理。

【技术特征摘要】

【专利技术属性】
技术研发人员:董继炳刘博强笪禹
申请(专利权)人:大唐移动通信设备有限公司
类型:发明
国别省市:11

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1