<?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 Muhammad Abdul Aleem on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Abdul Aleem on Medium]]></description>
        <link>https://medium.com/@aleemaheer?source=rss-10323bd06135------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*H1pPPWPRoZhHsD3d</url>
            <title>Stories by Muhammad Abdul Aleem on Medium</title>
            <link>https://medium.com/@aleemaheer?source=rss-10323bd06135------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:12:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aleemaheer/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[What is Linux?]]></title>
            <link>https://aleemaheer.medium.com/what-is-linux-38b8f6d9984e?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/38b8f6d9984e</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Sat, 28 Sep 2024 18:40:58 GMT</pubDate>
            <atom:updated>2024-09-28T18:40:58.586Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Beginner’s Guide to the Linux Operating System</h4><ul><li><strong>Definition</strong>: Linux is a powerful, open-source operating system (OS) based on Unix. It was created by <strong>Linus Torvalds</strong> in 1991 as a free alternative to proprietary operating systems like Windows and macOS.</li><li><strong>Popularity</strong>: While Linux is not as widely used on desktops as other OSs, it dominates the server market, powers the majority of web servers, and is at the heart of many modern technologies, such as cloud computing and mobile operating systems (Android).</li></ul><h4>How Linux Works</h4><ul><li><strong>Kernel</strong>: Linux is primarily a kernel. The kernel manages hardware, system resources, and communication between software and hardware.</li><li><strong>Distributions (Distros)</strong>: Linux comes in many distributions, which are versions of Linux bundled with various software. Popular distros include:</li><li><strong>Ubuntu</strong> (user-friendly)</li><li><strong>Fedora</strong> (cutting-edge software)</li><li><strong>Debian</strong> (stable and secure)</li><li><strong>Arch Linux</strong> (minimalist and customizable)</li><li><strong>CentOS</strong> (server-focused)</li></ul><h4>Open Source and Free Software</h4><ul><li><strong>Open Source</strong>: Linux is open source, meaning anyone can view, modify, and distribute its code. This encourages collaboration and customization.</li><li><strong>GNU Project</strong>: Linux is often referred to as <strong>GNU/Linux</strong> because it uses tools from the <strong>GNU Project</strong>, a free software initiative led by <strong>Richard Stallman</strong>.</li><li><strong>Licensing</strong>: Linux is released under the <strong>GNU General Public License (GPL)</strong>, ensuring that the software remains free and open for use and modification.</li></ul><h4>Key Features of Linux</h4><ul><li><strong>Stability and Security</strong>: Linux is known for its robustness, making it a popular choice for servers and mission-critical systems. Its built-in security features and permission-based file structure reduce vulnerabilities.</li><li><strong>Customization</strong>: Users can modify every part of the system, from the graphical user interface (GUI) to the kernel itself.</li><li><strong>Community Support</strong>: Linux has a vibrant global community, providing documentation, forums, and support, making it easier for beginners to get started.</li></ul><h4>Why Use Linux?</h4><ul><li><strong>Free and Low-Cost</strong>: Most Linux distributions are free to download and use.</li><li><strong>Flexibility</strong>: It can be used for a wide range of purposes, from desktop computing to embedded systems (like in routers and smart devices) to running supercomputers.</li><li><strong>Performance</strong>: Linux can run efficiently on both modern hardware and older machines, making it highly versatile.</li></ul><h4>Linux in Everyday Use</h4><ul><li><strong>Servers</strong>: Linux is the foundation of the majority of web servers, running services like Apache, Nginx, and more.</li><li><strong>Supercomputers</strong>: The fastest supercomputers in the world, including those used by research institutions and government agencies, use Linux.</li><li><strong>Cloud Computing</strong>: Linux is the foundation of many cloud environments, including services offered by AWS, Google Cloud, and Azure.</li><li><strong>Android</strong>: The Android operating system, used in billions of smartphones, is based on the Linux kernel.</li></ul><h4>Getting Started with Linux</h4><ul><li><strong>Choosing a Distro</strong>: Beginners can start with user-friendly distributions like <strong>Ubuntu</strong> or <strong>Linux Mint</strong>.</li><li><strong>Installation</strong>: Linux can be installed alongside other operating systems (dual boot), or it can be run live from a USB or CD without installing.</li><li><strong>Command Line</strong>: While Linux has graphical interfaces, learning basic <strong>command-line</strong> commands enhances the experience and provides deeper control.</li></ul><p>Linux is more than just an operating system; it’s a community-driven, secure, flexible, and powerful ecosystem that powers a significant portion of today’s digital world. Whether you’re a casual user, developer, or system administrator, Linux offers a wide range of possibilities.</p><p><strong>Sponsored by Remote Job from Anywhere</strong><br>Looking for your next remote opportunity? Check out <a href="https://remotejobfromanywhere.com/">Remote Job from Anywhere</a>, the job board that connects you with companies offering positions that fit your lifestyle — whether you’re a digital nomad or simply looking for flexibility. Explore a wide range of remote jobs and find the perfect role that allows you to work from wherever you choose.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38b8f6d9984e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Secrets: How Elon Musk’s Surprising Rate Limit Strategy Saved Twitter’s Future]]></title>
            <link>https://aleemaheer.medium.com/unlocking-the-secrets-how-elon-musks-surprising-rate-limit-strategy-saved-twitter-s-future-66d93902458d?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/66d93902458d</guid>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 18:54:26 GMT</pubDate>
            <atom:updated>2023-07-05T18:54:26.292Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this article I am going to discuss some points about why Elon Musk have putted Rate Limit on Twitter. There is a lot going more than that, but all people don’t know about that. Today I am going to share some key insights, so stay tight!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*gL0GMH4nbOo3BfZ6lHkmSA.png" /></figure><blockquote>Elon Musk buy Twitter for $44 Billion. Now he sees that there is not much profit for which he paid for. He is a business man. He wants to make money from Twitter because he have paid so much for this platform. Now he is cutting the running costs of Twitter as much he can.</blockquote><blockquote>At the time, Elon Musk took over., Twitter was just about 4 months to die. Because Twitter was not going on profit. So he really needs to take that steps to save the Twitter.<br>So what does he do to save the Twitter? Well, he have implemented many strategies to save Twitter and turn into profit.</blockquote><blockquote>He have laid off 6000 employees. The average salary of twitter employee is $160k, so he have laid off 6000 employees. You can do the maths.</blockquote><blockquote>He added subscription plan on verified accounts, also known as twitter blue. This costs $8 monthly and $84 yearly.</blockquote><blockquote>He have cut down the free access to twitter APIs, and charge a good money to use the APIs. Due to this, a lot of startups have failed and some founders have sold their startups that are using twitter APIs.</blockquote><blockquote>He have also laid off about 200 employees again on February 2023. Now currently at the moment, the total laid off were about 80% of twitter employees. That is a huge number. But they survived.</blockquote><p><strong>Now he have added Rate Limit on reading tweets. Here is a Rate limit plan that he have impulsed:</strong></p><p><strong><em>Verified accounts can read 6000 tweets a day.<br>Unverified accounts can read 600 tweets a day.<br>New unverified accounts can read 300 tweets a day.</em></strong></p><p><strong>Why he have added Rate limit on tweet reads?</strong></p><h4>Twitter signed a contract with Google in 2018 and expanded its GCP footprint in 2021. Twitter was reportedly due to pay Google some $300 million in 2023, as part of a multi-year deal worth around $1 billion, that was up for renewal at the end of June.</h4><blockquote>This is the reason why twitter have implemented Rate Limit.<br>There is a one more question, what caused twitter to be more costly these days, so they wants to implement a Rate limit?<br>Because as you know, twitter have ended its free API. But people want data from twitter. Now they are using their methods to get data from twitter. They are scraping twitter. Now these bots are constantly scraping the twitter which caused twitter some outages and increase in their cloud billing. But Elon Musk is smart enough to track the issue and he is doing the right thing to handle this.</blockquote><p>Thanks for reading. Share your opinions below, I will love to hear from you. Will meet you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66d93902458d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Essential Brain Foods: Nourishing Your Mind for Success and Happiness]]></title>
            <link>https://aleemaheer.medium.com/5-essential-brain-foods-nourishing-your-mind-for-success-and-happiness-cb1b68554ecc?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb1b68554ecc</guid>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[positive-thinking]]></category>
            <category><![CDATA[mindfulness]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 11:03:08 GMT</pubDate>
            <atom:updated>2023-07-01T11:03:08.435Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYSwLFtsXLhklC5AteRtLA.jpeg" /></figure><blockquote><em>Mind is the powerful body part in human being. It can make you king from poor or it can make you poor from king. It’s all about thinking.<br>In this article I am sharing 5 essential brain foods to feed your brain to get success and happiness.</em></blockquote><blockquote><strong>1. Think positive all the time: </strong><br>Positive thinking does not guarantee success, but negative thinking guarantee failure. — John Gordan<br>Embracing a mindset of positive thinking can shape your reality and unlock new possibilities. By focusing on the bright side, you can cultivate resilience, attract opportunities, and approach challenges with a proactive attitude. Harness the power of positive thoughts to create a harmonious and fulfilling life.</blockquote><blockquote><strong>2. Be Happy Always:</strong></blockquote><blockquote>Choosing happiness as a mindset is a powerful tool that can transform your life. Embracing joy and gratitude in each moment cultivates a positive outlook, allowing you to navigate challenges with resilience and find beauty in the smallest of things. Remember, happiness is not merely a destination but a way of living that can inspire and uplift both yourself and those around you.</blockquote><blockquote><strong>3. Crack Jokes with friends:</strong></blockquote><blockquote>Sharing laughter and cracking jokes with friends creates bonds that strengthen relationships and promote overall well-being. Humor serves as a powerful antidote to stress, fostering a lighthearted atmosphere and boosting mood. Embrace the joy of laughter and cherish the moments of levity with your friends, for it is in those moments that lifelong memories are made.</blockquote><blockquote><strong>4. Don’t Stay Alone for Long Time:</strong></blockquote><blockquote>Human beings are social creatures, and prolonged solitude can have negative effects on our mental and emotional well-being. Engaging with others fosters a sense of connection, provides support, and promotes personal growth. Make a conscious effort to seek meaningful interactions, build relationships, and create a supportive network that enriches your life.</blockquote><blockquote><strong>5. Attend Spiritual Gatherings:</strong></blockquote><blockquote>Participating in spiritual gatherings rejuvenates the mind and has a direct impact on the body. Through meditation, prayer, or communal rituals, these gatherings help reduce stress, promote relaxation, and enhance overall well-being. By nurturing the spiritual aspect of your being, you cultivate a harmonious balance that positively influences both your mental and physical health.</blockquote><p>Thanks for reading. Share your opinions below, I will love to hear from you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb1b68554ecc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Money Mistakes People Made]]></title>
            <link>https://aleemaheer.medium.com/7-money-mistakes-people-made-78ecf3c36f69?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/78ecf3c36f69</guid>
            <category><![CDATA[money]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[money-management]]></category>
            <category><![CDATA[money-mindset]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Mon, 26 Jun 2023 17:35:28 GMT</pubDate>
            <atom:updated>2023-06-26T17:35:28.898Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*3I6O52bVf5IdOGtn8Mhv8A.jpeg" /></figure><blockquote>Everyone dreams to make more money. There’s nothing wrong in making more money.<br>But what happens when people had made money. How do they spend?<br>There is a huge difference between getting rich and staying rich.<br>Let’s see some stats.</blockquote><blockquote><strong><em>75% of American teens lack knowledge in their personal finance.<br>25% of Americans say they don’t have anyone they can ask for trusted financial guidance.<br>78% of Adults ages between 18 to 29 have credit card debt, that’s over 90 days overdue.<br>2 in 3 families lack an emergency fund.<br>4 in 5 youths failed a financial literacy quiz.</em></strong></blockquote><h4>So there is a much lack of knowledge in managing finances.<br>In this article I am sharing 7 Money Mistakes people often do, that you should avoid. Stay Tight!</h4><blockquote><strong>1. You spend more than you earn.<br></strong>Yeah this is a valid mistake. You have to spend money that you earn, that you have. You don’t have to spend the money from your credit card. Always spend the money that you do have. No matter the amount is big or small, but you just have to spend less than you earn.<br>You have to do some math for your personal finance at the end of month. See your expenses, see your earnings and if you are spending more than you earn, then you really need to focus. The best way to reduce this is to write your every spending, and think what thing was not necessary to buy. This will takes some time, but it will help you in the long run.</blockquote><blockquote><strong>2. You live on borrowed money:<br></strong>Credit card debts are just like Home loans, car loans etc. Banks love when you do not pay your credit card. These are the bank’s products to make money. Because at the end they will take it from you. And you will pay much higher than you have borrowed, that’s the dangerous thing you should avoid. The goal is to live below your means.</blockquote><blockquote><strong>3. Not financially planing for future:<br></strong>You are not planing for your future. You spend more than you earned or spend all the money that you make. There’s no plan for your retirement. Because when you will get old, you’ll have nothing. You still have to work. So it’s better to plan for worse. Because everyone gets old, everyone dies.<br>Always invest in your future.</blockquote><blockquote><strong>4. You allow the lifestyle creep to occur:<br></strong>Often people think that when they earn more money, they have to increase their life style. Because they are not focusing on them, they are focusing on social media. Many people that you see having good lifestyle, use credit cards and spending more than they have. So you don’t have to follow them. I am not saying that don’t spend money on things like vacations, no definitely not. Instead set your budget for your vacations, shopping and set according to your income. Always save some money, and live on less than money that you total earned.</blockquote><blockquote><strong>5. You take shortcuts:<br></strong>Now you have made some money and want’s to get rich fast as possible. And now you think you are genius, put my money to work for me. People often invest in stocks and in crypto, but these are not easy things to do. You invest money and then the stocks fell, and the person who have not experience of these things will be afraid sell and loose much more money. So it’s important to double check, do your proper research, and invest the money that you don’t care too much.<br>Make your personal investment strategy and stays on it. No matter what the market is doing, but you have to be precise.</blockquote><blockquote><strong>6. You have only one source of income:<br></strong>Often people are very comfortable in their 9 to 5 jobs. Because they want to live a comfortable life. They don’t want to break their comfort zones and it’s worse. Having only one source of income means, you are only step away from poverty. In the recent pandemic, so many people lost their jobs, and they don’t have much to live because they have lost their one job. They don’t know how to diversify their income. So think about making multiple source of income.</blockquote><blockquote><strong>7. You prioritize for short term not the long term:<br></strong>You plan for small happiness, small parties on weekends and waste your precious time. I know it’s important, but you have to prioritize your time. Focus on long term financial goals. Don’t buy or do things that you don’t want. Stay in a good circle, because if you stay in good circle, your friends will talk about money, business and eventually you will. Always plan for the long term. Save for your tomorrow.</blockquote><blockquote>Everyone’s rich definition is different, so figure out what you want and plan accordingly, but whatever your definition is, avoid these 7 mistakes.</blockquote><p>Thanks for reading. Share your opinions below, I will love to hear from you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78ecf3c36f69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Daemon?]]></title>
            <link>https://aleemaheer.medium.com/what-is-daemon-95d6fe691ce0?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/95d6fe691ce0</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[process]]></category>
            <category><![CDATA[daemon]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Thu, 19 Jan 2023 12:54:19 GMT</pubDate>
            <atom:updated>2024-09-28T14:16:55.425Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*1JA-uQPt0N6ac2RE6y3HEA.png" /></figure><blockquote>In computing, a Daemon is a program that runs continuously to check for incoming requests. It is running on the operating system level. It does different acts on the type of request it recieves.</blockquote><p><strong>How the daemon process handles requests:</strong></p><blockquote>When requests come to a daemon process, it responds to these requests directly or directs the request to another process, or sometimes it creates a new process to handle some requests and these processes will be destroyed automatically after use.</blockquote><p><strong>What kind of operating system daemon process require:</strong></p><blockquote>Daemons require special services from the operating system, so they behave slightly different from one operating system to another operating system. They only run in multitasking operating system. They have also implemented in MS Windows. In Windows they are often referred as Windows Services instead of Daemon processes.</blockquote><p><strong>How the daemon name is adopted:</strong></p><blockquote>MIT programmers thought that demon would be a good name for a background service to work in the background tirelessly.</blockquote><p><strong>Example of daemon process:</strong></p><blockquote>If a email is recieved from a network, the TCP/IP module on the host computer looks up for the port number, i.e., 80 port is assigned to HTTP, so when a message recieved with that port number, the TCP/IP module sends signal to HTTPd (a daemon process to handle http requests). There are several daemon processes running on the operating system. Some of the daemon processes are listed down:</blockquote><blockquote>1. init: This is the first daemon process starts when the Unix boots, and it spawns all other processes.</blockquote><blockquote>2. inetd: This super-daemon listens for internet requests on a designated port number and spawns the appropriate server program to handle them. Services handled by inetd include rlogin, telnet, ftp, talk and finger.</blockquote><blockquote>3. crond: This daemon executes scheduled commands.</blockquote><p><strong>Sponsored by Remote Job from Anywhere</strong><br>Looking for your next remote opportunity? Check out <a href="https://remotejobfromanywhere.com/">Remote Job from Anywhere</a>, the job board that connects you with companies offering positions that fit your lifestyle — whether you’re a digital nomad or simply looking for flexibility. Explore a wide range of remote jobs and find the perfect role that allows you to work from wherever you choose.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95d6fe691ce0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inter-Process Communication and Synchronization:]]></title>
            <link>https://aleemaheer.medium.com/inter-process-communication-and-synchronization-f93811dcef9b?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/f93811dcef9b</guid>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[processes-and-threads]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Sun, 28 Aug 2022 16:19:20 GMT</pubDate>
            <atom:updated>2022-08-28T16:19:20.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmB63hm2FurV5Q29vysR1A.png" /><figcaption><strong>Inter-Process Communication</strong></figcaption></figure><blockquote><strong>Running processes in Linux:</strong></blockquote><blockquote>A running Linux system consists of numerous processes, many of which operate independently of each other. Some processes, however, cooperate to achieve their intended purposes, and these processes need methods of communicating with one another and synchronizing their actions.</blockquote><blockquote><strong>How processes communicate to each other:</strong></blockquote><blockquote>One way for processes to communicate is by reading and writing information in disk files. However, for many applications, this is too slow and inflexible. Therefore, Linux, like all modern UNIX implementations, provides a rich set of mechanisms for interprocess communication (IPC), including the following:</blockquote><blockquote><strong>Signals:</strong> which are used to indicate that an event has occurred.<br><strong>Pipes:</strong> (familiar to shell users as the | operator) and FIFOs, which can be used to transfer data between processes.<br><strong>Sockets:</strong> which can be used to transfer data from one process to another, either on the same host computer or on different hosts connected by a network.<br><strong>File locking:</strong> which allows a process to lock regions of a file in order to prevent other processes from reading or updating the file contents.<br>message queues, which are used to exchange messages (packets of data) between processes.<br><strong>Semaphores:</strong> which are used to synchronize the actions of processes and<br>shared memory, which allows two or more processes to share a piece of memory.<br>When one process changes the contents of the shared memory, all of the other<br>processes can immediately see the changes.</blockquote><p>The wide variety of IPC mechanisms on UNIX systems, with sometimes overlapping functionality, is in part due to their evolution under different variants of the UNIX system and the requirements of various standards. For example, FIFOs and UNIX domain sockets essentially perform the same function of allowing unrelated processes on the same system to exchange data. Both exist in modern UNIX systems because FIFOs came from System V, while sockets came from BSD.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f93811dcef9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is process?]]></title>
            <link>https://aleemaheer.medium.com/what-is-process-7ec199496a31?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ec199496a31</guid>
            <category><![CDATA[kernal]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[process]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 13:34:11 GMT</pubDate>
            <atom:updated>2022-08-23T16:53:16.275Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*rPjqXKb0nQFMKFdgL_t8UQ.png" /></figure><p>A process is an instance of an executing program. When a program is executed, the kernel loads the code of the program into virtual memory, allocates space for program variables, and sets up kernel bookkeeping data structures to record various information (such as process ID, termination status, user IDs, and group IDs) about the process.</p><blockquote><strong>Kernel Point of view:</strong><br>From a kernel point of view, processes are the entities among which the kernel must share the various resources of the computer. For resources that are limited, such as memory, the kernel initially allocates some amount of the resource to the process, and adjusts this allocation over the lifetime of the process in response to the demands of the process and the overall system demand for that resource. When the process terminates, all such resources are released for reuse by other processes. Other resources, such as the CPU and network bandwidth, are renewable, but must be shared equitably among all processes.</blockquote><blockquote><strong>Process Memory Layout:</strong></blockquote><blockquote>A process is logically divided into the following parts, known as segments:<br><strong><em>Text:</em></strong><em> </em>The instructions of the program.<br><strong><em>Data:</em></strong><em> </em>the static variables used by the program.<br><strong><em>Heap:</em></strong><em> </em>an area from which programs can dynamically allocate extra memory.<br><strong><em>Stack:</em></strong> a piece of memory that grows and shrinks as functions are called and<br>return and that is used to allocate storage for local variables and function call<br>linkage information.</blockquote><p><strong>Process creation and Program execution:</strong></p><blockquote>A process can create a new process using the fork() system call. The process that calls fork() is referred to as the parent process, and the new process is referred to as the child process. The kernel creates the child process by making a duplicate of the parent process. The child inherits copies of the parent’s data, stack, and heap segments, which it may then modify independently of the parent’s copies. (The program text, which is placed in memory marked as read-only, is shared by the two processes.)<br>The child process goes on either to execute a different set of functions in the<br>same code as the parent, or, frequently, to use the execve() system call to load and execute an entirely new program. An execve() call destroys the existing text, data, stack, and heap segments, replacing them with new segments based on the code of the new program.</blockquote><blockquote>Several related C library functions are layered on top of execve(), each providing a slightly different interface to the same functionality. All of these functions have names starting with the string exec, and where the differences don’t matter, we’ll use the notation exec() to refer generally to these functions. Be aware, how-ever, that there is no actual function with the name exec().</blockquote><p><strong>Process ID and parent process ID:</strong></p><blockquote>Each process has a unique integer process identifier (PID). Each process also has a parent process identifier (PPID) attribute, which identifies the process that requested the kernel to create this process.</blockquote><p><strong>Process termination and termination status:</strong></p><blockquote>A process can terminate in one of two ways: by requesting its own termination<br>using the _exit() system call (or the related exit() library function), or by being killed by the delivery of a signal. In either case, the process yields a termination status, a small nonnegative integer value that is available for inspection by the parent process using the wait() system call. In the case of a call to _exit(), the process explicitly specifies its own termination status. If a process is killed by a signal, the termination status is set according to the type of signal that caused the death of the process.<br>(Sometimes, we’ll refer to the argument passed to _exit() as the exit status of the process, as distinct from the termination status, which is either the value passed to _exit() or an indication of the signal that killed the process.)<br>By convention, a termination status of 0 indicates that the process succeeded,<br>and a nonzero status indicates that some error occurred. Most shells make the termination status of the last executed program available via a shell variable named $?.</blockquote><p><strong>Process user and group identifiers (credentials):</strong></p><blockquote>Each process has a number of associated user IDs (UIDs) and group IDs (GIDs).<br>These include:<br><strong>Real user ID and real group ID: </strong>These identify the user and group to which the<br>process belongs. A new process inherits these IDs from its parent. A login shell<br>gets its real user ID and real group ID from the corresponding fields in the system password file.<br><strong>Effective user ID and effective group ID:</strong> These two IDs (in conjunction with the<br>supplementary group IDs discussed in a moment) are used in determining the<br>permissions that the process has when accessing protected resources such as<br>files and inter-process communication objects. Typically, the process’s effective IDs have the same values as the corresponding real IDs. Changing the effective IDs is a mechanism that allows a process to assume the privileges of another user or group, as described in a moment.<br><strong>Supplementary group IDs:</strong> These IDs identify additional groups to which a process belongs. A new process inherits its supplementary group IDs from its parent. A login shell gets its supplementary group IDs from the system group file.</blockquote><p><strong>Privileged Processes:</strong></p><blockquote>Traditionally, on UNIX systems, a privileged process is one whose effective user ID is 0 (superuser). Such a process bypasses the permission restrictions normally applied by the kernel. By contrast, the term unprivileged (or nonprivileged) is applied to processes run by other users. Such processes have a nonzero effective user ID and must abide by the permission rules enforced by the kernel.<br>A process may be privileged because it was created by another privileged process for example, by a login shell started by root (superuser). Another way a process may become privileged is via the set-user-ID mechanism, which allows a process to assume an effective user ID that is the same as the user ID of the program file that it is executing.</blockquote><p><strong>Capabilities:</strong></p><blockquote>Since kernel 2.2, Linux divides the privileges traditionally accorded to the superuser into a set of distinct units called capabilities. Each privileged operation is associated with a particular capability, and a process can perform an operation only if it has the corresponding capability. A traditional superuser process (effective user ID of 0) corresponds to a process with all capabilities enabled. Granting a subset of capabilities to a process allows it to perform some of the operations normally permitted to the superuser, while preventing it from performing others.</blockquote><p><strong>The init() process:</strong></p><blockquote>When booting the system, the kernel creates a special process called init, the “parent of all processes,” which is derived from the program file /sbin/init. All processes on the system are created (using fork()) either by init or by one of its descendants. The init process always has the process ID 1 and runs with superuser privileges. The init process can’t be killed (not even by the superuser), and it terminates only when the system is shut down. The main task of init is to create and monitor a range of processes required by a running system.</blockquote><p><strong>Daemon process:</strong></p><blockquote>A daemon is a special-purpose process that is created and handled by the system<br>in the same way as other processes, but which is distinguished by the following<br>characteristics:<br>It is long-lived. A daemon process is often started at system boot and remains<br>in existence until the system is shut down.</blockquote><blockquote>It runs in the background, and has no controlling terminal from which it can read input or to which it can write output.</blockquote><blockquote>Examples of daemon processes include syslogd, which records messages in the system log, and httpd, which serves web pages via the Hypertext Transfer Protocol (HTTP).</blockquote><p><strong>Environment List:</strong></p><blockquote>Each process has an environment list, which is a set of environment variables that are maintained within the user-space memory of the process. Each element of this list consists of a name and an associated value. When a new process is created via fork(), it inherits a copy of its parent’s environment. Thus, the environment provides a mechanism for a parent process to communicate information to a child process. When a process replaces the program that it is running using exec(), the new program either inherits the environment used by the old program or receives a new environment specified as part of the exec() call. Environment variables are created with the export command in most shells (or the setenv command in the C shell), as in the following example:<br>$ export MYVAR=’Hello world’<br>Whenever we present a shell session log showing interactive input and output,<br>the input text is always boldfaced. Sometimes, we include commentary in the<br>log in italic text, adding notes about the commands entered or the output<br>produced. C programs can access the environment using an external variable (char **environ), and various library functions allow a process to retrieve and modify values in its environment.<br>Environment variables are used for a variety of purposes. For example, the<br>shell defines and uses a range of variables that can be accessed by scripts and programs executed from the shell. These include the variable HOME, which specifies the pathname of the user’s login directory, and the variable PATH, which specifies a list of directories that the shell should search when looking for programs corresponding to commands entered by the user.</blockquote><p><strong>Resource Limits:</strong></p><blockquote>Each process consumes resources, such as open files, memory, and CPU time.<br>Using the setrlimit() system call, a process can establish upper limits on its consumption of various resources. Each such resource limit has two associated values: a soft limit, which limits the amount of the resource that the process may consume; and a hard limit, which is a ceiling on the value to which the soft limit may be adjusted. An unprivileged process may change its soft limit for a particular resource to any value in the range from zero up to the corresponding hard limit, but can only lower its hard limit.<br>When a new process is created with fork(), it inherits copies of its parent’s<br>resource limit settings.<br>The resource limits of the shell can be adjusted using the ulimit command<br>(limit in the C shell). These limit settings are inherited by the child processes that the shell creates to execute commands.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ec199496a31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is multiplexing?]]></title>
            <link>https://aleemaheer.medium.com/what-is-multiplexing-8b7294acd555?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b7294acd555</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[multiplexing]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 11:29:33 GMT</pubDate>
            <atom:updated>2022-08-23T11:29:33.879Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Multiplexing:</strong></p><p>Multiplexing is the process of combining multiple signals into one signal, over a shared medium. On the other hand, demultiplexing is the process of converting one signal into multiple signals.</p><h4>MUX:</h4><p>The device which converts multiple signals into a single signal is called mux.</p><p><strong>DEMUX:</strong></p><p>The device which converts a single signal into multiple signals is called demux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfNjNIw99yc6jYfye-nnyQ.png" /></figure><h4>Why we use multiplexing?</h4><ul><li>The transmission medium is used to send the signal from sender to receiver. The medium can only have one signal at a time.</li><li>If there are multiple signals to share one medium, then the medium must be divided in such a way that each signal is given some portion of the available bandwidth. For example: If there are 10 signals and bandwidth of medium is100 units, then the 10 unit is shared by each signal.</li><li>When multiple signals share the common medium, there is a possibility of collision. Multiplexing concept is used to avoid such collision.</li><li>Transmission services are very expensive.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b7294acd555" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is POSIX?]]></title>
            <link>https://aleemaheer.medium.com/what-is-posix-2c40e51b1d82?source=rss-10323bd06135------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c40e51b1d82</guid>
            <category><![CDATA[susy3]]></category>
            <category><![CDATA[posix]]></category>
            <category><![CDATA[fip]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <dc:creator><![CDATA[Muhammad Abdul Aleem]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 20:03:42 GMT</pubDate>
            <atom:updated>2022-08-15T20:03:42.811Z</atom:updated>
            <content:encoded><![CDATA[<h3>POSIX</h3><h3>POSIX:</h3><p>The term POSIX (an abbreviation of Portable Operating System Interface) refers to a group of standards developed under the auspices of the Institute of Electrical and Electronic Engineers (IEEE), specifically its Portable Application Standards Committee (<em>PASC</em>, <a href="http://www.pasc.org/">http://www.pasc.org/</a>). The goal of the <em>PASC</em> standards is to promote the application portability at the source code level.<br>The name <em>POSIX</em> was suggested by <strong>Richard Stallman</strong>. The final X appears<br>because the names of most <strong>UNIX </strong>variants end in X. The standard notes that<br>the name should be pronounced “<em>pahz-icks</em>,” like “<em>positive.</em>”</p><h4>POSIX.1 Conformant:</h4><p><em>POSIX.1</em> documents an API for a set of services that should be made available to a program by a conforming operating system. An operating system that does this can be certified as <em>POSIX.1 </em>conformant. <em>POSIX.1</em> is based on the UNIX system call and the C library function API, but it doesn’t require any particular implementation to be associated with this interface. This means that the interface can be implemented by any operating system, not specifically a <em>UNIX</em> operating system. In fact, some vendors have added APIs to their proprietary operating systems that make them <em>POSIX.1</em> conformant, while at the same time leaving the underlying operating system largely unchanged.</p><h4>POSIX.1b extensions:</h4><p>The <em>POSIX.1b</em> realtime extensions include <em>file synchronization,</em> <em>asynchronous<br>I/O, process scheduling, high-precision clocks and timers, and interprocess<br>communication using semaphores, shared memory, and message queues.</em> The<br>prefix <em>POSIX</em> is often applied to the three interprocess communication methods to distinguish them from the similar, but older, System V semaphores, shared memory, and message queues. A related standard, <em>POSIX.2</em>, standardized the shell and various <em>UNIX</em> utilities, including the command-line interface of the C compiler.</p><h4>What is FIPS?</h4><p><em>FIPS </em>is an abbreviation for <strong>Federal Information Processing Standard</strong>, the name of a set of standards specified by the US government for the purchase of its computer systems. In 1989, <em>FIPS 151–1</em> was published. This standard was based on the <em>1988 IEEE POSIX.1</em> standard and the draft <em>ANSI C standard</em>.</p><h4>Difference Between FIPS and POSIX:</h4><p>The main difference between <em>FIPS 151–1 and POSIX.1</em> (1988) was that the <em>FIPS</em> standard required some features that <em>POSIX.1</em> left as optional. Because the US government is a major purchaser of computer systems, most computer vendors ensured that their UNIX systems conformed to the <em>FIPS 151–1 </em>version of <em>POSIX.1.</em></p><h4>What is SUSv3:</h4><p><em>POSIX 1003.1–2001</em> replaces <em>SUSv2, POSIX.1, POSIX.2</em>, and a raft of other earlier <em>POSIX s</em>tandards. This standard is also known as the <em>SUSv3 (Single UNIX Specification Version 3).</em></p><h4>SUSv3 base specifications:</h4><p><strong>Base Definitions (XBD): </strong>This part contains definitions, terms, concepts, and specifications of the contents of header files. A total of 84 header file specifica-<br>tions are provided.</p><p><strong>System Interfaces (XSH): </strong>This part begins with various useful background information. Its bulk consists of the specification of various functions (which are implemented as either system calls or library functions on specific UNIX implementations). A total of 1123 system interfaces are included in this part.</p><p><strong>Shell and Utilities (XCU): </strong>This specifies the operation of the shell and various UNIX commands. A total of 160 utilities are specified in this part.</p><p><strong>Rationale (XRAT): </strong>This part includes informative text and justifications relating to the earlier parts.<br>There is more about to read, you can read on <a href="http://www.unix.org/version3/online.html">this</a>.</p><p>Thank you for reading this article, if you have any questions, please comment below, I will love to see.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c40e51b1d82" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>