Linux Inter Process Communication (IPC) from Scratch in C (Udemy.com)
Linux Course - Includes Socket Programming, Linux System Programming, C programming - From Beginner to Expert
Created by: Abhishek CSEPracticals
Last updated March 2024
Our take
Based on the ratings of 1,509 students, a sample of their written reviews and the syllabus, as the course stood in March 2024. No course pays to be reviewed.
The course teaches how Linux processes talk to each other, written in plain C with no third-party libraries. The syllabus covers Unix domain sockets, message queues, shared memory and signals, then spends about two and a half hours on network socket programming, followed by a short multiplexing lecture and a socket programming project. It's aimed at computer science students and job seekers headed into systems, networking or driver work. Basic C is a real requirement. It was first published in 2018 and last updated in March 2024.
Reviewers like Abhishek's slow, patient pace, and the description promises code walks on both the sending and receiving side. One student says they already use what they learned at work, and even experienced engineers report picking up new insight. The complaints come up again and again, though. Several people find it repetitive and loosely structured. Others say it stays at the API level, telling you to pass NULL or 0 without explaining why, and never gets into what the kernel is doing. One reviewer flags chopped-up audio in the accept() lecture, another notes pipes are missing, and the final project code isn't fully walked through.
With 10,681 students and a 4.5 average, it delivers what it promises for beginners in IPC: a hands-on introduction that gets sockets and shared memory working on your own machine. Treat it as a starting point, not a reference. Anyone after kernel-level depth will likely outgrow it quickly.
Pros
- Slow, clear explanations that reviewers say make hard IPC topics understandable
- Code walks show both sender and receiver side for each IPC mechanism
- Covers four local IPC methods plus TCP/UDP socket programming in under nine hours
- Pure C with no third-party libraries, so the system calls stay visible
Cons
- Repetitive in places, and some reviewers point out code patterns that aren't best practice
- Stays at the API level with little on kernel internals, and pipes aren't covered
- Patchy production: chopped audio in the accept() lecture, project code not fully shown
The teacher presents difficult topics in very understandable way at slow pace, so that I was able to understand most of the course and learn about IPC. I am already using this knowledge at work.
Listed as All Levels, but it best suits IPC beginners who already write basic C. Experienced systems programmers will find it shallow.
What you will learn
- You will be able to Design Application which require IPC
- Choose the best IPC mechanism depending on the application requirement
- Understand the Linux IPC programming interface
- Understand Linux OS better and feel confident
- Prepare for IPC based interview Questions
- Design a Linux process which could harness benefits of various IPC Mechanism at the same time
Course content
9 sections · 72 lectures · 8.7 hours of video 4 articles
- 1Table of Contents 2 free previews3 lectures · 16 min
- 2Pre-requisites - Setting up Linux Development Environment1 lecture
- 3IPC Technique 1 - Unix Domain Sockets 2 free previews16 lectures · 2.4 hours
- 4IPC Technique 2 - Message Queues10 lectures · 50 min
- 5IPC Technique 3 - Shared Memory10 lectures · 1.4 hours
- 6IPC Technique 4 - Signals5 lectures · 34 min
- 7Network Socket Programming17 lectures · 2.5 hours
- 8Multiplexing on Multiple IPCs1 lecture · 6 min
- 9Project on Socket Programming9 lectures · 39 min
Who it is for
The instructor says it suits
- Under graduate Computer Science Students
- Post Graduate Students
- Job Seekers in System programming Domain - Networking/Driver programming/Distributed Systems/IOT etc
What you need before you start
- Basic C is essential
- Basic knowledge Operating System shall be good
- Zeal and Enthusiasm to learn
How it compares
Against the other 125 rated Udemy courses in Linux on CourseDuck:
- Rating4.5 out of 5higher than 52% of them
- Reviews1,509#43 of 126 by number of reviews
- Length8.7 hourslonger than 55% of them
- Last updatedMarch 2024more recently than 54% of them
Course Description
About This Course is about learning How Linux Processes Talk to each Other. This is a sub-domain of Linux System Programming. We shall explore various popular mechanism used in the industry through which Linux processes to exchange data with each other. We will go through the concepts in detail behind each IPC mechanism, discuss the implementation, and design and analyze the situation where the given IPC is preferred over others.
We also discuss how applications should be designed to use IPC facilities provided by underlying Linux OS.
You will have Assignments wherever possible, and throughout the course, there shall be one project in which you shall be incrementally applying the new IPC technique you have learned. Towards the end of the course, you would have practiced and applied all IPC techniques learned in this course.
Each IPC mechanism, we will have a detailed code walk in which I show you how actually a given IPC mechanism is implemented on sending and receiving side. When you would join the industry, from day 1 you will witness IPC concepts being applied all over the software in order to facilitate communication between different parts of the software.
Who should do this course ?
This course is meant for UG Computer science students, job seekers, and professional developers. This is a MUST do course for those who want to join MNCs as a developer in System Programming. In System Programming, almost all the time you have to use IPC to carry out data exchange between processes, therefore students graduating in computer science and looking to seek an opportunity in MNCs as a developer should have IPC concepts at his/her fingertips.
Pre-requisite
It shall be advantageous if you know a little about C and OS. We designed this course assuming the student is a complete beginner in Linux IPC and we raise the level of course gradually as we move from Basic to advance concepts wherever necessary.
Also, please just do not sit and watch my codes. Write your own codes, even if it is the same as mine!
Related Courses
RPC (Remote Procedure Calls) is another way of carrying out Inter-Process Communication between two processes running on separate machines in the network. You may also want to check my other course on Linux RPCs where you will learn how to implement RPCs from scratch.
Programming Language used In this course :
We have strong reasons to choose C as a language for this course:
IPC is a facility provided by the OS to developers to carry out data exchange between processes. Learning IPC using C helps you understand what is going on behind the scenes. C language really exposes the low-level details about how the system actually works. In System programming, C is the only language to be used and there is not even a remote substitute of this language when it comes to System programming.
No Third-Party libraries
Whatever logic you implement, you need to implement it from scratch. This course does not suggest taking the help of any third party library to get the jobs done. Use of external libraries completely defeats the purpose of the course. However, it is recommended to use third-party libraries for commonly used data structures such as linked lists/Trees/Queues, etc which saves a lot of time implementing these data structures.
Note1 : Though we use Linux to teach the IPC techniques, conceptually, IPC of Linux is not very different from other OS platforms such as windows, iOS, etc. So, if you are a programmer for other platforms, this course still holds great value for you.
Note2 : This Course talks about various techniques regarding exchanging data between processes, the other related topics such as process synchronization and locking is out of the scope of this course and will be covered separately.
Warning: This course has auto system-generated subtitles which may not be perfect. Please disable subtitles as per your convenience.
Curriculum
Introduction
Table of Contents
Computer Architecture - Overview
Various IPC Techniques
Communication Types
IPC Technique 1 - Unix Domain Sockets
Socket API Introduction
Socket Message Types
Socket Design Paradigm
Accept System Call
Introducing Unix Domain Socket
Unix Domain Socket Server Implementation
Unix Domain Socket Client Implementation
Multiplexing
Select System Call
Multiplexing Server State machine
Multiplexed Server Implementation
Data Synchronization - IPC Project part 1
IPC Technique 2 - Message Queue
Introduction
MsgQ as a Kernel Resource
Open & Create a MsgQ
Closing a MsgQ
Enque Data in MsgQ
Dequeue Data from MsgQ
Unlinking a MsgQ
Using a Msg Q - Design perspective
Bi-Directional Communication
Code Walk - Implementation
Demonstration
IPC Technique 3 - Shared Memory
Overall Design Goals
Concept of Virtual Memory
Program Control Block
Shared Memory Basics
Kernel Memory
mmap() - Memory Mapping
Design Constraint
Shared Memory related APIs
Data Synchronization - IPC Project part 2
IPC Technique 4 - Signals
Introduction
Linux Well knows Signals
Signals Generation and Trapping
Sending Signals using Kill()
Data Synchronization - IPC Project part 3
IPC Technique 5 - Network sockets
Socket Programming Design
Select System call
Accept System call
Concept of Multiplexing
Server State machine
Project on Socket Programming - IPC Project 4
Multiplexing on Different IPCs
Use select() to multiplex on different IPC interfaces
Instructor Details
- 4.5 Rating
1,509 Reviews
Abhishek CSEPracticals
I have been engaged with coding and software for a decade now. I am a Networking developer at MNC. My rich working experience is backed by graduation from IIT Bombay as an MTech specialist. I am restless for more in-depth knowledge, and always working out the ways to integrate what I know in practical ways. I am always happy to train and encourage people on Udemy – the next-gen education platform.
I will help you to strengthen the networking concepts and fundamentals in a very practical way. I also hones in System Software Development, Linux System Programming and Network Software Development. I love to create courses on unique non-standard topics, and projects. Check my catalogue, you will find couple of project based courses which you can add to your resume.
You’ll complete assignments and work on a project where you’ll use all the theory. I make sure you build a proper understanding and that you’ll get all the questions and doubts answered. Let me take the privilege to guide you and bring useful additions to your resume !
More courses by Abhishek CSEPracticals
Linux System Programming Techniques & Concepts (2024)
4.6 (1,566 Reviews)
Provider: Udemy
Time: 14.3h
$11.99
Original pricePart A - Multithreading & Thread Synchronization - Pthreads (2025)
4.5 (866 Reviews)
Provider: Udemy
Time: 16.5h
$11.99
Original priceBuild Remote Procedure Calls (RPC) - from scratch in C (2022)
4.6 (154 Reviews)
Provider: Udemy
Time: 6.2h
$11.99
Original priceLinux Timers Implementation & Design in C (2022)
4.6 (111 Reviews)
Provider: Udemy
Time: 3.8h
$11.99
Original price
More Linux courses
Learn Ubuntu Fast: Learn, Practice, and Advance your Career (2022)
4.8 (112 Reviews)
Provider: Udemy
Time: 6.6h
$11.99
Original priceLinux Mastery: Master the Linux Command Line in 11.5 Hours (2023)
4.7 (27,499 Reviews)
Provider: Udemy
Time: 10.7h
$24.99
Original priceThe Linux Command Line Bootcamp: Beginner To Power User (2026)
4.7 (10,510 Reviews)
Provider: Udemy
Time: 15.8h
$15.99
Original priceComplete Linux Bash Shell Scripting with Real Life Examples (2026)
4.7 (4,978 Reviews)
Provider: Udemy
Time: 14.7h
$16.99
Original priceComplete Linux Troubleshooting Course (Practical Examples) (2026)
4.7 (2,264 Reviews)
Provider: Udemy
Time: 17h
$16.99
Original priceLinux Security: The Complete Iptables Firewall Guide (2026)
4.7 (1,575 Reviews)
Provider: Udemy
Time: 9.4h
$11.99
Original price
Reviews
By Єгор Грек on 1/8/2024
That is an entry-level practical course for IPC in Linux, I learned how to create one thread multiplexed server using UNIX sockets, and how to use signals, message queues, and shared memory to exchange data between processes running on the same machine. The disadvantage of the course is the lack of recommended literature. I would want to know more about how the OS handles all of it, not only how to use its API. Also the editing and sound quality could have been better.
By Anonymized User on 8/27/2023
TCP and UDP with multiplexing concepts explained well. Final project code is not shown while explaining; and no idea whether is it available on git or not? This course is too short and could have been merged with other system programming in C and/or in other network programming course of yours.
By Ivan on 6/9/2023
Amazing. Very clearly explained. Well organized combination of theoretical and practical part. Good and precise explanation of concepts and terminology that is used in the area of IPC with repetition and with practical examples. Above my expectations.
By Suhail Khan on 2/9/2021
Content and explanation is good. Be mindful that this course covers a foundation level of the various topics mentioned. You won't write production ready systems after finishing this course. You will need an in-depth study for that. Cons: - A video/section summarizing the different IPC mechanisms and when to prefer one over the other would be preferred. - The QnA support seems to be mediocre. - The section on Network Socket Programming seems like it was lifted from someplace else and dropped here. Although the content is decent it doesn't flow with the rest of the course. - Does not cover UDP multicasting.
By Manoj Kumar Srivastava on 9/16/2020
The in depth explanation about different IPC mechanism is very good. I have a good working experience on Windows IPC but I thought to take this course and understand the difference. During the course, there were lot of lower lever information came and trainer explained them well. And those information are very good and can be considered during design. I appreciate trainer and I love his courses.
By George Alex on 5/10/2020
Could have provided study material/cheat sheet along with the code for easy reference...Basically this course is very short and should have included networking sockets as well.Putting that as another course doesn't do justice to IPC topic.Also synchronization and threading concepts like mutex/semaphore which are vital are left out. Not great but definitely good.
By Kev Smith on 11/20/2019
Another good course. This is the 2nd one I've done by these instructors and I'm looking forward to doing a 3rd. The course material is well explained, has solid examples and provides challenges for you to deepen your understanding. Keep up the great work
By Siddesh Gv on 6/25/2019
Excellent course , code walk is very well explained . It helped me to understand the concepts from scratch along with practicals . would love to have have more courses on IOT and cloud computing . Thanks a lot for this wonderful course Abhishek.
By Ram Naraian on 4/16/2019
Very good content, its cleared all my doubts, now i can train others. Now I am confident and going to take session on this. Thanks Abhishek and Shiwani..expecting more courses on Multithreading , system programming and network programming. Thanks again.
By Kamil Alkhouri on 4/10/2019
This course is a piece of art! - well structured - perfectly presented - slides and sound are clear - different ideas are nicely organized to make it easier to connect and understand all of them - enough focus is given to the practical side as well
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 90 / 100










