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

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

  •  
  •   zhongshaohua · Jul 16, 2016 · 3168 views
    This topic created in 3630 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   ·   5371 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:03 · PVG 15:03 · LAX 00:03 · JFK 03:03
    ♥ Do have faith in what you're doing.