本書(shū)是一部UNIX網(wǎng)絡(luò)編程的經(jīng)典之作。進(jìn)程間通信(IPC)幾乎是所有Unix程序性能的關(guān)鍵,理解IPC也是理解如何開(kāi)發(fā)不同主機(jī)間網(wǎng)絡(luò)應(yīng)用程序的必要條件。本書(shū)從對(duì)Posix IPC和System V IPC的內(nèi)部結(jié)構(gòu)開(kāi)始討論,全面深入地介紹了4種IPC形式:消息傳遞(管道、FIFO、消息隊(duì)列)、同步(互斥鎖、條件變量、讀寫(xiě)鎖、文件與記錄鎖、信號(hào)量)、共享內(nèi)存(匿名共享內(nèi)存、具名共享內(nèi)存)及遠(yuǎn)程過(guò)程調(diào)用(Solaris門(mén)、Sun RPC)。附錄中給出了測(cè)量各種IPC形式性能的方法。本書(shū)內(nèi)容詳盡且具權(quán)威性,幾乎每章都提供精選的習(xí)題,并提供了部分習(xí)題的答案,是網(wǎng)絡(luò)研究和開(kāi)發(fā)人員理想的參考書(shū)。
Part Ⅰ Introduction Chapter 1 Introduction 1.1 Introduction 1.2 Processes, Threads, and the Sharing of Information 1.3 Persistence of IPC Objects 1.4 Name Spaces 1.5 Effect of fork, exec, and exit on IPC Objects 1.6 Error Handling: Wrapper Functions 1.7 Unix Standards 1.8 Road Map to IPC Examples in the Text 1.9 Summary Chapter 2 Posix IPC 2.1 Introduction 2.2 IPC Names 2.3 Creating and Opening IPC Channels 2.4 IPC Permissions 2.5 Summary Chapter 3 System V IPC 3.1 Introduction 3.2 key_t Keys and ft:ok Function 3.3 ipc_perm Structure 3.4 Creating and Opening IPC Channels 3.5 IPC Permissions 3.6 Identifier Reuse 3.7 ipcs and ~porto Programs 3.8 Kernel Limits 3.9 Summary Part 2 Message Passing Part 3 Synchronization Part 2 Shared Memory Part 2 Remote Procedure Calls Epilogue Appendix A Appendix B Appendix C Bibliography Index