C++ Concurrency in Action 在線電子書 圖書標籤: C++ Concurrency 並行 編程 並發 C/C++ 多綫程 計算機
發表於2024-06-10
C++ Concurrency in Action 在線電子書 pdf 下載 txt下載 epub 下載 mobi 下載 2024
關於lock-free算法部分頗為醒腦, 但實際跑起來效率不佳. 所缺者, 純講語言, 無實際程序作根底. 書中例子不少並無編譯器實現, 隻能紙上談談. 另, 作者好像還在賣多綫程庫, 和書價格差不多.
評分地鐵讀書係列第二本...原子操作看的想哭,不過還是學到瞭不少東西。爭取在項目重構的時候改改並發。
評分看瞭個大概,細節的以後再說。。
評分書是好書,基礎大補,但是太不接地氣,全篇下來給人一種缺乏站在工程視角隻顧自high的感覺(過於 doctrinal ?);比如lock-based design涉及的部分太少瞭,而部分內容的敘述過於勉強,比如後麵在 advanced thread management 裏強行展示如何 interrupt a thread (with exception-safety)簡直看的人菊花一緊....本身 multithreading 就是極具心智負擔的東西,過於強調技巧不見得是好事。最好能結閤一些工程實踐上的guidelines,免得走偏瞭迴不來
評分終於看完瞭。附錄真長
HIGHLIGHT C++ Concurrency in Action is the first book to market to show how to take advantage of the new C++ Standard and how to write robust multi-threaded applications in C++. DESCRIPTION With the new C++ Standard and Technical Report 2 (TR2), multi-threading is coming to C++ in a big way. TR2 will provide higher-level synchronization facilities that allow for a much greater level of abstraction, and make programming multi-threaded applications simpler and safer. As a guide and reference to the new concurrency features in the upcoming C++ Standard and TR2, this book is invaluable for existing programmers familiar with writing multi-threaded code in C++ using platform-specific APIs, or in other languages, as well as C++ programmers who have never written multithreaded code before. KEY POINTS * When and when not to use concurrency * Concurrency and multi-threading in C++ * Concurrency support in the New Standard * How to improve performance with concurrency * How to manage concurrency * Problems and solutions in sharing data * Synchronization and why we need it * Memory model details
内容涉及到c++ 0x的 thread lib 以及新的内存模型,另外也有相当篇幅谈C++的并行程序(主要是多线程)如何设计。老实说,写的我觉得并不算通俗易懂,当然毕竟这一块也不是特别容易解释。 但是毕竟这是第一本介绍0x多线程设计的书籍,顺带还有关于内存模型的讲解,所以很难得。C++...
評分给看这本翻译版的人几个提醒: 1、要始终相信自己的理解能力,看不懂中文不是你的错。 2、别太较真,除非你有时间自己翻译一遍。 3、需要较真的地方一定要看原文。每一段自己找个关键词,每一节自己写个总结。记住一定要自己写,不要以为能够从翻译文字中复制几句拼起来当总结...
評分作者, 同时也是boost::thread库的(前)作者, 实力碉堡, 你甚至可以在stackoverflow上看到他回答的问题. 看到有书评说C++0x的concurrency的书, 但实际上没有C++0x的语言特性, 新的thread库也能work的很好. 甚至说跳出C++, 光memory model, lock-free, CPU cache line optimizat...
評分最新问题,chaper 6.2.3 find-grained queue,在wait_and_pop和push的同步上调用了condition variable,但是push方法因为notify的时候没有取得wait_and_pop方法的head-lock所以在特殊情况下会导致wait_and_pop方法永远等待下去。 这里是问题的描述 http://stackoverflow.com/ques...
評分英文原版是不可多得的好书,评分低是中文版翻译的渣。 如果愿意花时间把原版硬啃下来,并且切实在代码上实践,辅以工业级库(比如boost,std,folly)的源码学习的话,真的能学到太多太多了。 本书作者是大名鼎鼎的boost库并发的作者,呼应系列名《In Action》。全书围绕真实...
C++ Concurrency in Action 在線電子書 pdf 下載 txt下載 epub 下載 mobi 下載 2024