<?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 Heshan Hiruvinda on Medium]]></title>
        <description><![CDATA[Stories by Heshan Hiruvinda on Medium]]></description>
        <link>https://medium.com/@heshanhiruvinda12?source=rss-2cadd77adde5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9AW_SDKx0Pv33zGo</url>
            <title>Stories by Heshan Hiruvinda on Medium</title>
            <link>https://medium.com/@heshanhiruvinda12?source=rss-2cadd77adde5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:03:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@heshanhiruvinda12/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[Blocking and Non-blocking Operations]]></title>
            <link>https://medium.com/@heshanhiruvinda12/blocking-and-non-blocking-operations-5b3dcf22a69c?source=rss-2cadd77adde5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b3dcf22a69c</guid>
            <dc:creator><![CDATA[Heshan Hiruvinda]]></dc:creator>
            <pubDate>Mon, 20 Jan 2025 19:48:37 GMT</pubDate>
            <atom:updated>2025-01-20T19:48:37.382Z</atom:updated>
            <content:encoded><![CDATA[<h3>(Blocking operations)</h3><p>An operation that blocks program or thread execution until it is finished is known as a blocking operation. The system essentially “blocks” the execution flow during this period, halting the processing of any more instructions until the procedure is finished</p><p>Features of Operations for Blocking:</p><ul><li>Execution Flow: All subsequent actions on the same thread are suspended while the program waits for the operation to finish.</li><li>Effect on Responsiveness: Blocking may cause programs to respond more slowly, particularly when they have user interfaces or real-time demands.</li><li>Typical situations include executing network requests, reading or writing files, and utilizing synchronous techniques to access databases.</li></ul><p># Example of a blocking operation</p><p>import time</p><p>print(“Start”)</p><p>time.sleep(5) # Halts the program for 5 seconds</p><p>print(“End”)</p><h3>(Non-Blocking Operations)</h3><p>On the other hand, non-blocking operations enable a program to carry out more instructions without waiting for the present operation to conclude. To handle the result when it becomes available, these operations frequently make use of callbacks, promises, or event loops.</p><p>Features of Operations for Non-Blocking:</p><ul><li>Execution Flow: The action is processed in the background while the program carries on with other duties.</li><li>Effect on Responsiveness: Non-blocking operations improve responsiveness, which makes them perfect for applications and real-time systems that handle large concurrent workloads.</li><li>Typical situations include file I/O, database queries, and asynchronous network requests.</li></ul><p>// Example of a non-blocking operation</p><p>console.log(“Start”);</p><p>setTimeout(() =&gt; {</p><p>console.log(“This happens after 5 seconds”);</p><p>}, 5000);</p><p>console.log(“End”);</p><h3>(Differences Between Blocking and Non-Blocking Operations)</h3><p>Execution Flow :</p><ul><li>Blocking Operations(Halts execution until the task completes)</li><li>Non-Blocking Operations(Continues execution while task runs in background)</li></ul><p>Program Responsiveness :</p><ul><li>Blocking Operations(Reduced due to waiting)</li><li>Non-Blocking Operations(Improved due to concurrent execution)</li></ul><p>Complexity</p><ul><li>Blocking Operations(Simpler to implement and debug)</li><li>Non-Blocking Operations(More complex due to callbacks/promises/event handling)</li></ul><p>Common Use Cases</p><ul><li>Blocking Operations(Synchronous I/O, single-threaded scripts)</li><li>Non-Blocking Operations(Asynchronous I/O, event-driven systems)</li></ul><h3>(How blocking and non-blocking operations are handled in different programming environments.)</h3><p>Single-Threaded Environments:</p><ul><li>Blocking: Blocking operations have the potential to halt an entire program in single-threaded environments, such as classic Python (using CPython).</li><li>Non-Blocking: Better concurrency is made possible by asynchronous frameworks like asyncio or libraries like Twisted, which permit non-blocking activities.</li></ul><p>Multi-Threaded Environments:</p><ul><li>Blocking: Blocking: In multi-threaded systems, blocking actions may just pause the active thread, with no impact on other threads.</li><li>Non-Blocking: By allowing background operations to operate in distinct threads or processes, programs can operate more efficiently overall.</li></ul><p>Event-Driven Environments:</p><ul><li>Blocking: As demonstrated in Node.js, blocking actions are typically avoided since they break the event loop.</li><li>Non-Blocking: Event-driven frameworks, such as JavaScript’s async/await and Node.js, are made to easily manage non-blocking processes.</li></ul><p>Systems Programming:</p><ul><li>Blocking: By default, system calls in languages such as C/C++ frequently block.</li><li>Non-Blocking: To manage several concurrent connections, non-blocking I/O can be accomplished by employing mechanisms such as select, poll, or epoll.</li></ul><h3>Conclusion</h3><p>Applications’ responsiveness and performance are greatly influenced by blocking and non-blocking actions. Blocking activities can impair performance in situations that call for concurrency or real-time answers, despite being simple and simpler to implement. Even though they are more complicated, non-blocking procedures are essential to contemporary programming paradigms because they let programmers design responsive and scalable programs. Writing reliable and effective software requires knowing when and how to apply these actions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b3dcf22a69c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The impact of mobile computing on e- commerce and online shopping]]></title>
            <link>https://medium.com/@heshanhiruvinda12/the-impact-of-mobile-computing-on-e-commerce-and-online-shopping-5163f2ab88e9?source=rss-2cadd77adde5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5163f2ab88e9</guid>
            <dc:creator><![CDATA[Heshan Hiruvinda]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 06:28:57 GMT</pubDate>
            <atom:updated>2025-01-13T06:28:57.878Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*byOIm7s0Hig70-GccYqdAw.jpeg" /></figure><p>The ability to use computer devices like laptops, tablets, and smartphones while on the go and connected to wireless networks is known as mobile computing. Mobile computing gives customers the ability to browse, compare, and buy goods and services from any location at any time in the context of e-commerce and online shopping. The way that companies and consumers engage in the online marketplace has been completely transformed by this easy accessibility.</p><p>With the development of mobile internet networks (such 3G, 4G, and now 5G), mobile computing became a vital component of contemporary digital life by enabling faster and more dependable connectivity. Mobile commerce (m-commerce) emerged as a result of e-commerce platforms’ adaptation of their websites and applications to mobile devices.</p><h3>What is Mobile Computing🤔</h3><p>“Mobile computing” refers to the practice of using portable gadgets, such as laptops, tablets, and smartphones, to do computing tasks while mobile. These gadgets allow users to access information and computing resources from anywhere at any time, eliminating geographical limitations.</p><ul><li>Wireless Connectivity: Enables access to the internet and networks through Wi-Fi, cellular networks, or Bluetooth.</li><li>Cloud Computing: Allows users to store and access data and applications remotely.</li><li>Portability: Devices such as smartphones, tablets, and laptops are designed to be lightweight and easy to carry.</li></ul><h3>Future Trends of Mobile Computing</h3><ul><li>5G Networks: Smoother online shopping experiences, including HD video content and real-time interactions, will be made possible by faster internet speeds and lower latency.</li><li>AI &amp; Machine Learning: Chatbots, predictive analytics, and personalized purchasing experiences will all advance.</li><li>Blockchain and Cryptocurrency: As blockchain technology becomes more widely used, transactions could become more transparent and safe.</li><li>Wearable Technology: New ways to browse and buy things will be made possible by smartwatches and other wearable technology.</li></ul><h3>Advantages and Disadvantages ⚖️</h3><p>Advantages✅</p><ul><li>Convenience: Mobile computing allows consumers to shop anytime and anywhere.</li><li>Personalization: AI-driven recommendations enhance user experience.</li><li>Efficiency: Fast transactions and easy navigation reduce time spent on shopping.</li><li>Broader Reach for Businesses: Companies can target a global audience without physical stores.</li><li>Real-Time Updates: Customers receive instant notifications about discounts, offers, and order statuses.</li></ul><p>Disadvantages❌</p><ul><li>Security Concerns: Mobile devices are vulnerable to cyberattacks and data breaches.</li><li>Device Limitations: Smaller screens and battery life can affect usability.</li><li>Dependency on Internet Connectivity: Poor network coverage can disrupt shopping.</li><li>Overwhelming Choices: Consumers may face decision fatigue due to excessive options.</li><li>Digital Divide: Not everyone has access to mobile devices or the internet.</li></ul><h3>Conclusion📝</h3><p>E-commerce and online buying have unquestionably changed as a result of mobile computing, which has made them more individualized, efficient, and accessible. The benefits greatly exceed the disadvantages, notwithstanding certain obstacles like security threats and device restrictions. Companies will prosper in this changing environment if they invest in cutting-edge technologies like AI, AR, and 5G and implement mobile-first strategies.Mobile computing is the best option for consumers’ modern buying demands due to its convenience and adaptability. To guarantee that everyone can benefit from mobile computing, it will be essential to address security and accessibility concerns.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5163f2ab88e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>