xionghengheng
V2EX  ›  问与答

多线程编程。。。。锁

  •  
  •   xionghengheng · Aug 7, 2015 · 3569 views
    This topic created in 4139 days ago, the information mentioned may be changed or developed.

    最近在用c++做一个异步的httpclient,使用的libcurl 。

    发现多线程经常出问题,加锁的力度和范围不好把控,求帮助或者建议 有什么参考的书籍 或者 博客

    11 replies  •  2015-08-08 21:20:04 +08:00
    gzxultra
    gzxultra
    Aug 7, 2015
    1
    欢迎刷一遍linux内核源码——
    http://124.16.141.171:81/lxr/source
    fwee
    fwee
    Aug 7, 2015
    2
    看看erlang的那几本书或go blog,不是叫你学语言,学上面教多线程编程的
    xionghengheng
    xionghengheng
    OP
    Aug 7, 2015
    3
    @gzxultra 碉堡。。。。
    xionghengheng
    xionghengheng
    OP
    Aug 7, 2015
    4
    xionghengheng
    xionghengheng
    OP
    Aug 7, 2015
    5
    @fwee erlang的哪几本书啊 可以推荐下吗
    typcn
    typcn
    Aug 7, 2015
    6
    libcurl 不是线程安全的么
    superhxnju
    superhxnju
    Aug 7, 2015
    7
    java concurrency in practice 不知道里面的思想可不可以通用
    caoyue
    caoyue
    Aug 7, 2015
    8
    @xionghengheng
    Erlang 的「线程」和 C++ 不同,也没有通常意义上的「锁」,看 Erlang 的书对你的问题应该没什么帮助……
    lsmgeb89
    lsmgeb89
    Aug 7, 2015
    9
    去看陈硕的那本书吧~~
    lsmgeb89
    lsmgeb89
    Aug 7, 2015
    10
    是这本,写得不错的。正符合你的需求,即使不搞网络编程也可以看看。

    https://book.douban.com/subject/20471211/
    xionghengheng
    xionghengheng
    OP
    Aug 8, 2015
    11
    @lsmgeb89 这本确实不错 收藏啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2201 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:10 · PVG 11:10 · LAX 19:10 · JFK 22:10
    ♥ Do have faith in what you're doing.