<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Study Notes on YHY Study Website</title><link>http://ryanyhy.github.io/YHY-Website/en/tags/study-notes/</link><description>Recent content in Study Notes on YHY Study Website</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 17 Nov 2026 00:27:34 +0800</lastBuildDate><atom:link href="http://ryanyhy.github.io/YHY-Website/en/tags/study-notes/index.xml" rel="self" type="application/rss+xml"/><item><title>OS Lab: Linux System V IPC</title><link>http://ryanyhy.github.io/YHY-Website/en/blog/linux-sysv-ipc-rps/</link><pubDate>Sun, 15 Nov 2026 00:00:00 +0000</pubDate><guid>http://ryanyhy.github.io/YHY-Website/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><item><title>An Attempt at a Vibe Knowledge Video</title><link>http://ryanyhy.github.io/YHY-Website/en/blog/vibe-quoit-video/</link><pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate><guid>http://ryanyhy.github.io/YHY-Website/en/blog/vibe-quoit-video/</guid><description>&lt;p&gt;After finishing &lt;a href="../quoit-design-closest-pair/"&gt;Quoit Design&lt;/a&gt; on October 30, I wanted to turn it into a vibe-style explainer video. Videos of that kind have been everywhere lately. I already had a Cursor Premium subscription. The idea came from hearing that Grok bot in it can call Opus 5.5, and that Opus 5.5 looks better than the others for video built from generated code. I had also heard that one video costs about 5 to 6 yuan. I wanted to see two things with this problem: how far the result has got, and whether it gets any traffic once it is posted.&lt;/p&gt;</description></item><item><title>Divide and Conquer: Quoit Design and the Closest Pair</title><link>http://ryanyhy.github.io/YHY-Website/en/blog/quoit-design-closest-pair/</link><pubDate>Fri, 30 Oct 2026 00:00:00 +0000</pubDate><guid>http://ryanyhy.github.io/YHY-Website/en/blog/quoit-design-closest-pair/</guid><description>&lt;p&gt;On October 30 I worked through Quoit Design from &lt;a href="https://vjudge.net/contest/862457#problem/A"&gt;this contest&lt;/a&gt;. The public statement is &lt;a href="http://acm.hdu.edu.cn/showproblem.php?pid=1007"&gt;HDU 1007&lt;/a&gt;. Every toy is a point, and the ring should be as large as possible without encircling two toys at once. I did not start by picking an algorithm. I asked what actually limits the radius.&lt;/p&gt;
&lt;p&gt;A toy is encircled when its distance to the center is strictly less than the radius. If two points are less than &lt;span class="katex"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;2r&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class="katex-html" aria-hidden="true"&gt;&lt;span class="base"&gt;&lt;span class="strut" style="height:0.6444em;"&gt;&lt;/span&gt;&lt;span class="mord"&gt;2&lt;/span&gt;&lt;span class="mord mathnormal" style="margin-right:0.02778em;"&gt;r&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; apart, some circle of radius &lt;span class="katex"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;r&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class="katex-html" aria-hidden="true"&gt;&lt;span class="base"&gt;&lt;span class="strut" style="height:0.4306em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" style="margin-right:0.02778em;"&gt;r&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; contains both of them strictly: put the center at the midpoint. The radius can therefore be at most half the distance of the closest pair. If two toys coincide, the radius is 0. The output keeps two decimal places.&lt;/p&gt;</description></item><item><title>Operating System Fundamentals Review (2)</title><link>http://ryanyhy.github.io/YHY-Website/en/blog/os-basic-concepts-review-2/</link><pubDate>Tue, 20 Oct 2026 00:00:00 +0000</pubDate><guid>http://ryanyhy.github.io/YHY-Website/en/blog/os-basic-concepts-review-2/</guid><description>&lt;p&gt;My October 20 notes focus on CPU scheduling. The &lt;a href="../os-basic-concepts-review/"&gt;previous post&lt;/a&gt; distinguished programs, jobs, and processes, along with concepts such as concurrency and synchronous calls. This post continues with a related question: when several tasks need to run, how does the system decide who gets the CPU first, for how long, and when to switch?&lt;/p&gt;
&lt;p&gt;I start by separating the levels of scheduling, then look at the metrics used to evaluate it, and finally compare the algorithms. Seen this way, the algorithms do more than carry different names. They address different priorities: finishing tasks sooner, responding to users sooner, or meeting deadlines.&lt;/p&gt;</description></item><item><title>Operating System Fundamentals: A Review (1)</title><link>http://ryanyhy.github.io/YHY-Website/en/blog/os-basic-concepts-review/</link><pubDate>Fri, 16 Oct 2026 00:00:00 +0000</pubDate><guid>http://ryanyhy.github.io/YHY-Website/en/blog/os-basic-concepts-review/</guid><description>&lt;p&gt;Today I went back over programs, jobs, processes, concurrency, parallelism, and synchronous and asynchronous calls. I could remember roughly what each term meant, but when I put them together, I still wasn&amp;rsquo;t clear on what each one actually described.&lt;/p&gt;
&lt;p&gt;On my second pass, I found it easier to start with one question: &lt;strong&gt;What is this concept meant to explain?&lt;/strong&gt; I&amp;rsquo;ll use that question to work through their differences.&lt;/p&gt;
&lt;figure class="td-figure"&gt;
 &lt;img src="http://ryanyhy.github.io/YHY-Website/blog/os-basic-concepts-review/cover.png" alt="Illustration comparing programs, jobs, and processes, with examples of concurrency, parallelism, and asynchronous execution" width="1672" height="941" loading="lazy" decoding="async"&gt;&lt;figcaption&gt; &lt;span class="td-fig-caption"&gt;First distinguish the work, the method, and its execution; then look at how multiple tasks make progress&lt;/span&gt;&lt;/figcaption&gt;
&lt;/figure&gt;&lt;h2 id="program-job-process"&gt;Programs, jobs, and processes
&lt;/h2&gt;
&lt;p&gt;What I most wanted to separate was the method described by a program, the work requested from the system, and the execution of that work. Which concept describes each of these?&lt;/p&gt;</description></item></channel></rss>