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

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

  •  
  •   zhongshaohua · Jul 16, 2016 · 3106 views
    This topic created in 3592 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   ·   Solana   ·   3086 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:42 · PVG 20:42 · LAX 05:42 · JFK 08:42
    ♥ Do have faith in what you're doing.