Handle Interprocess Activities Using C Programming
摘要
In Chapter 6 , “Process and Thread Management Tasks for C Programmers,” we have learned how to implement multiprocessing applications in C using Linux system calls such as fork, wait, and exec. In this chapter, we will learn how to implement processes coordination activities using Linux services. Specifically, we will learn various Linux interprocess communication (IPC) approaches and services for implementing multiprocess coordination activities. In this chapter, first, you will be learning how to implement synchronous multiprocess coordination activities using IPC approaches such as pipes and named pipes (also known as FIFO). Next, you will be learning how to implement asynchronous multiprocess coordination activities using IPC approaches such as message queues and shared memory. Finally, you will be learning how to handle interprocess coordination activities in a reliable manner using an IPC approach called semaphores.