Coder Social home page Coder Social logo

Comments (7)

qicosmos avatar qicosmos commented on July 29, 2024

按照cpu核心数来,有多少个核心起多少个线程。

from cinatra.

hggq avatar hggq commented on July 29, 2024

有没有多进程的防程序崩溃,可以专门在linux下用也行

from cinatra.

qicosmos avatar qicosmos commented on July 29, 2024

你是说加守护进程吗?

from cinatra.

hggq avatar hggq commented on July 29, 2024

是,还要有进程池和线程池,博主可以加入boost beast,顺带把通用数据库链接库加入boost 先占一个坑

from cinatra.

hggq avatar hggq commented on July 29, 2024

看到 boost 1.70.0 beta 更新最大功能是beast

from cinatra.

micfan avatar micfan commented on July 29, 2024

@hggq 多线程看到已经实现了,位置在 https://github.com/qicosmos/cinatra/blob/master/include/cinatra/io_service_pool.hpp#L25

不知这种方式就是“线程池”?

from cinatra.

qicosmos avatar qicosmos commented on July 29, 2024

这个是充分利用多核,每个线程一个io_service

from cinatra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.