支持多线程并发与消息异步处理的Linux Netlink通信机制研究  被引量:1

Research on Linux Netlink Communication Mechanism Supporting Multithreaded Concurrency and Message Asynchronous Processing

在线阅读下载全文

作  者:熊伟[1] 丁涵 罗云锋[1] XIONG Wei DING Han LUO Yun-feng(Naval Computing Technology Institute ,Beijing 100841 ,China)

机构地区:[1]海军计算技术研究所,北京100841

出  处:《软件导刊》2017年第10期99-103,共5页Software Guide

摘  要:Netlink是Linux操作系统内核空间与用户空间最流行的进程间通信机制之一,但目前在多线程程序中的使用还存在一些问题。介绍了Netlink相对于Linux其它传统通信手段的优点,阐述了使用Netlink进行用户程序与内核模块通信的实现方法,分析了目前公开资料上Netlink线程并发支持机制存在的问题,并给出了支持多线程并发与消息异步处理的正确方法,最后在真实机器上进行了验证。结果显示,该方法能有效支持在多线程Linux应用中使用Netlink进行用户态与内核态通信。Netlink is one of the most popular IPC(Inter-Process Communication) mechanisms for Linux operating system between kernel space and user space, but there are still some problems in multithreaded programs using this method. This paper first analyzes the advantages of netlink sockets compared with other traditional means of communication. Then, we elaborate the method of using netlink socket for user program and kernel module communication, and then analyses the current threads concurrent support of netlink, and put forward a method supporting multi-threaded concurrent and message asynchronous processing, and finally the experiments are carried out in the real machine. The results of the experiments show that this method can effectively support the multithreaded concurrency with netlink on Linux.

关 键 词:LINUX nelink 进程间通信 多线程并发 异步处理 

分 类 号:TP319[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象