我从去年开始学习ACE,当时从同事那里借了这本《ACE程序员指南》,最开始看到这本书时,有点轻视的心态,在我印象中好像叫什么什么指南之类的书都是属于比较简单的入门书,所以大概翻了翻,就搁置不看了。
今年年初,为了研究使用ACE进行多线程编程,我打算研究这本书中的几个例子,在仔细阅读相关章节后,我觉得这本书的内容非常丰富,值得仔细研究,最开始看书时,不知道有配套的源码,阅读支离破碎的程序片段,理解并不深刻,不过幸运的是,不久以后我在ACE发布的源代码中,找到了这本书的配套程序,感觉就像发现了一个大宝藏一样,这本书共有140多个配套源程序,内容相当丰富,超出了我的想象。
这本书涉及到的主题很多,而且比较实用,有很多示例具有相当的深度,也涉及到了很多模式,比如,讨论了Reactor模式,Proactor模式,Acceptor-Connector框架,半同步半异步线程模型,领导者跟随者线程模型(虽然该程序有bug),ACE_Streams(应用管道过滤器模式),虽然我还没有完整的读完这本书,但我从中确实学到了好多东西,我觉得仔细阅读这本书,并且测试配套的源代码,应该是学习ACE的一个捷径。当然,一本书不可能覆盖ACE的全部主题,但如果掌握了这本书,估计大部分的ACE问题都可以应付。