Book description
The definitive guide to Linux processes and IPC for programmers and system administrators
Pipes, message queues, semaphores, shared memory, RPC, sockets, the /proc filesystem, and much more
In-depth coverage of multithreading with POSIX compliant LinuxThreads
Contains dozens of detailedprogram examples (GNU C/C++ 2.96/Red Hat Linux 7.3 & 8.0)
Raves for Gray's companion UNIX® volume!
"Concepts I only vaguely understood now make complete sense to me! The sample code and exercises are so good,they seem to clamp down on the concepts like a vise grip..."—S. Lee Henry, Johns HopkinsUniversity
The expert, example-rich guide to Linuxprocesses and IPC
Serious Linux software developers need a sophisticated understanding of processes, system level programming andinterprocess communication techniques. Now, John Shapley Gray, author of the widely praised Interprocess Communicationin UNIX, Second Edition, zeroes in on the core techniques Linux uses to manage processes and IPC. With exceptionalprecision and great clarity, Gray explains what processes are, how they're generated, how they access their environments,how they communicate—and how to use them to build robust, high-performance systems.
Includes extensive coverage of named/unnamed pipes, message queues, semaphores, and shared memory.
Provides C++ classes for System V IPC facilities.
Offers an in-depth introduction to socket-basedcommunication.
Demystifies Linux's /proc file system.
Illuminates the LinuxThreads POSIX threadimplementation and its use in multithreaded applications.
Provides valuable tips and warnings, plus insight intokey differences amongst Linux and Unix implementations.
Includes problem sets and illustrations designed toreinforce key concepts.
Gray presents dozens of standalone program examples; all compiled with the GNU C/C++ compiler 2.96 & 3.2, and fullytested on PC platforms running Red Hat Linux 7.3 & 8.0.
http://authors.phptr.com/gray/
Table of contents
- Copyright
- Introduction
- Acknowledgments
- 1. Programs and Processes
-
2. Processing Environment
- 2.1. Introduction
- 2.2. Process ID
- 2.3. Parent Process ID
- 2.4. Process Group ID
- 2.5. Permissions
- 2.6. Real and Effective User and Group IDs
- 2.7. File System Information
- 2.8. File Information
- 2.9. Process Resource Limits
- 2.10. Signaling Processes
- 2.11. Command-Line Values
- 2.12. Environment Variables
- 2.13. The /proc Filesystem
- 2.14. Summary
- 2.15. Key Terms and Concepts
- 3. Using Processes
- 4. Primitive Communications
- 5. Pipes
- 6. Message Queues
- 7. Semaphores
- 8. Shared Memory
-
9. Remote Procedure Calls
- 9.1. Introduction
- 9.2. Executing Remote Commands at a System Level
- 9.3. Executing Remote Commands in a Program
- 9.4. Transforming a Local Function Call into a Remote Procedure
- 9.5. Debugging RPC Applications
- 9.6. Using RPCGEN to Generate Templates and a MAKEFILE
- 9.7. Encoding and Decoding Arbitrary Data Types
- 9.8. Using Broadcasting to Search for an RPC Service
- 9.9. Summary
- 9.10. Key Terms and Concepts
- 10. Sockets
-
11. Threads
- 11.1. Introduction
- 11.2. Creating a Thread
- 11.3. Exiting a Thread
- 11.4. Basic Thread Management
- 11.5. Thread Attributes
- 11.6. Scheduling Threads
- 11.7. Using Signals in Threads
- 11.8. Thread Synchronization
- 11.9. Thread-Specific Data
- 11.10. Debugging Multithreaded Programs
- 11.11. Summary
- 11.12. Nomenclature and Key Concepts
- A. Using Linux Manual Pages
- B. UNIX Error Messages
- C. RPC Syntax Diagrams
- D. Profiling Programs
- E. Bibliography
Product information
- Title: Interprocess Communications in Linux®: The Nooks & Crannies
- Author(s):
- Release date: January 2003
- Publisher(s): Pearson
- ISBN: 0130460427
You might also like
book
Linux® Socket Programming
This book teaches readers how to program Linux sockets, and gives them everything they need to …
video
Kubernetes and Docker: The Container Masterclass
Containers are empowering businesses to scale fearlessly and manage their web applications hassle-free. They are the …
book
Python Concurrency with asyncio
Learn how to speed up slow Python code with concurrent programming and the cutting-edge asyncio library. …
book
Mastering Linux Kernel Development
Explore Implementation of core kernel subsystems About This Book Master the design, components, and structures of …