Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
zhongshaohua
V2EX  ›  Linux

如何实现并发内核多线程服务器?

  •  
  •   zhongshaohua · Jul 16, 2016 · 3295 views
    This topic created in 3701 days ago, the information mentioned may be changed or developed.
    内核做为服务端,处理用户态 n 个客户发请求,并回应。用 netlink ,根据如下思路实现,但是不知道服务端怎么实现多线程处理,这样做好像只能创建 1 个线程?:
    recv_nlmsg()->kthread_run(proc_read,data,"thread")->proc_read()->send_nlmsg
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5483 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:22 · PVG 09:22 · LAX 18:22 · JFK 21:22
    ♥ Do have faith in what you're doing.