检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:熊伟[1] 丁涵 罗云锋[1] XIONG Wei DING Han LUO Yun-feng(Naval Computing Technology Institute ,Beijing 100841 ,China)
出 处:《软件导刊》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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.124