<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mithun Surya Kumarasamy on Medium]]></title>
        <description><![CDATA[Stories by Mithun Surya Kumarasamy on Medium]]></description>
        <link>https://medium.com/@mithunsurya1313?source=rss-04bd1af39455------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*sFI7kmGtldIzNeWY</url>
            <title>Stories by Mithun Surya Kumarasamy on Medium</title>
            <link>https://medium.com/@mithunsurya1313?source=rss-04bd1af39455------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 13:02:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mithunsurya1313/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[User mode Vs Kernel mode | by Mithun Surya]]></title>
            <link>https://medium.com/@mithunsurya1313/user-mode-vs-kernel-mode-by-mithun-surya-e78643386732?source=rss-04bd1af39455------2</link>
            <guid isPermaLink="false">https://medium.com/p/e78643386732</guid>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[basics-of-os]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[kernel-mode]]></category>
            <category><![CDATA[user-mode]]></category>
            <dc:creator><![CDATA[Mithun Surya Kumarasamy]]></dc:creator>
            <pubDate>Fri, 16 Jan 2026 13:35:18 GMT</pubDate>
            <atom:updated>2026-01-16T13:35:18.770Z</atom:updated>
            <content:encoded><![CDATA[<p>Here we are going to see a topic like season switching that is like a sudden change from summer to a moody winter or somewhat like that. In Operating Systems we have two modes that is User mode and Kernel mode, we can just assume it as a summer and a winter. Whatever things we type or execute or create in the system will be executed in the user mode only unless it has any important(critical) operations. We have the mode bit to denote whether the process is in user mode(1) or kernel mode(0).</p><p>Just consider a scenario, if you are studying in your home for a simple test it is not an important one right, it can be done simply and lethargically. So it will be done in user mode. In another case if you are studying one day before the semester exam, it is way way important and it should be done in kernel mode that’s it. In user mode you studying for dummy exams, so it won’t affect much on your CGPA so like that in Operating systems if the process running in user mode suddenly crashes or whatever may happens, but the system won’t be affected. But in the kernel mode it is way way opposite, studying for the semester exams directly affects your CGPA, so concentrate on semester exams and the dummy exams are also important don’t avoid just like that.</p><p><strong>When to switch?</strong></p><p>Here you are studying for dummy test, but suddenly remember that you have an another important test tomorrow you suddenly stop studying for the dummy test and you start preparing for the important test right, that is what exactly happens in operating systems too, when your are executing an user program in user mode, suddenly an important operation(Disk/Input/Output/System Calls/Read/Write) comes we switch to kernel mode and execute it there by switching the mode bit.</p><p><strong>Where this switching happens?</strong></p><p>I have a beautiful example to explain this, when you want to switch to study for the important exam rather than wasting in dummy exams, just simply you can’t go and study you need materials, internet, books everything right, like that you can’t switch from user to kernel directly you have to request the hardware by using the interrupt, the hardware changes the mode bit from 1 to 0 then it is executed in kernel mode mode and the mode bit is changed from 0 to 1 after completion of an important process. Do you think this changing of mode bit is a critical process? absolutely yes, It happens in kernel mode only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_JAVvM0nTmT79kKkU268HA.png" /></figure><p><strong>Advantages of user mode</strong></p><ol><li>When you study for some dummy exams you can particularly focus on that small topic itself, you don’t worry about other stuffs, like that here debugging of the code is easier (Easier Debugging).</li><li>When you don’t study for the dummy exams that exams alone will be affected and it will affect your CGPA very infinitesimally (Crash Containment).</li><li>You can’t read other topics unrelated to the dummy test you have, that is One app can’t read or corrupt another’s memory (Process Isolation).</li><li>Like already discussed, the dummy test doesn’t play a much role in your CGPA, that is Applications can’t directly affect the kernel or other processes (Stability and Reliability).</li><li>Direct access to the important resources is blocked, providing the Security.</li></ol><p><strong>Disadvantages of user mode</strong></p><ol><li>You can’t study the whole book for the dummy test, Low-level tasks (like direct I/O) cannot be done (Limited Capability).</li><li>Even though you are studying for the dummy tests, the portions will be included in your semester exams too like that User programs rely on the kernel to perform essential functions (Dependence on kernel).</li><li>When you think semester exams are important, you may switch from dummy to semester and semester to dummy again and again like that System calls require switching between user and kernel mode, which adds latency (Performance overhead).</li></ol><p><strong>Advantages of kernel mode</strong></p><ol><li>During semester exam preparation you can study the whole syllabus in any order (easy to hard)/(hard to easy) like that in kernel mode we can directly manage CPU time, RAM, and I/O devices (Efficient Resource Management).</li><li>You can prepare by watching tutorials or by using any AI tools right like that OS developers can fine-tune for performance or hardware (Custom Optimization).</li><li>In semester exams preparation, you can prepare easy and hard topics like your wish like that kernel mode handles system calls and process management efficiently (Low Overhead).</li></ol><p><strong>Disadvantages of kernel mode</strong></p><ol><li>If you didn’t prepare a whole lesson for the semester exam, it will affect your grade points, the same will happen in kernel mode also, the errors/bugs can bring down the whole OS (Risk of System Crash).</li><li>If you left one topics, it might be harder to find the topic you left out that is mistakes in kernel code are difficult to trace and rectify (Harder to Debug).</li><li>You need some prerequisites before the semester exam preparation right like that you need a deep knowledge of OS internals (Complex Development).</li><li>Every topics are inter-related in semester exams, so one question may depend on another question like that in kernel mode memory is shared, bugs can corrupt the entire kernel and OS too (No Process Isolation).</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e78643386732" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>