<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>System v IPC on YHY Study Website</title><link>https://ryan.0412.online/en/tags/system-v-ipc/</link><description>Recent content in System v IPC on YHY Study Website</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 17 Nov 2026 00:27:33 +0800</lastBuildDate><atom:link href="https://ryan.0412.online/en/tags/system-v-ipc/index.xml" rel="self" type="application/rss+xml"/><item><title>OS Lab: Linux System V IPC</title><link>https://ryan.0412.online/en/blog/linux-sysv-ipc-rps/</link><pubDate>Sun, 15 Nov 2026 00:00:00 +0000</pubDate><guid>https://ryan.0412.online/en/blog/linux-sysv-ipc-rps/</guid><description>&lt;p&gt;On November 15 I was working through an OS lab. The assignment asks for rock-paper-scissors over Linux IPC, a producer-consumer program with semaphores, and a networked version. While doing the lab, I also wanted to understand Linux process communication: what the three System V mechanisms are for, how to create and use them, and how rock-paper-scissors can be written with them.&lt;/p&gt;
&lt;p&gt;Processes created with &lt;code&gt;fork()&lt;/code&gt; each have their own address space. A variable in one process is invisible to the other. To exchange data, they need a kernel channel. System V IPC is the set of interfaces that comes up first in this lab.&lt;/p&gt;</description></item></channel></rss>