<?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 Vedika Sontakke on Medium]]></title>
        <description><![CDATA[Stories by Vedika Sontakke on Medium]]></description>
        <link>https://medium.com/@vedikasontakke2003?source=rss-913f9c22f7e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Vedika Sontakke on Medium</title>
            <link>https://medium.com/@vedikasontakke2003?source=rss-913f9c22f7e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:58:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vedikasontakke2003/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[Exploring JVM and Garbage Collection in Java]]></title>
            <link>https://medium.com/@vedikasontakke2003/exploring-jvm-and-garbage-collection-in-java-92b0ffee1809?source=rss-913f9c22f7e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/92b0ffee1809</guid>
            <category><![CDATA[heap]]></category>
            <category><![CDATA[memory-management-in-java]]></category>
            <category><![CDATA[memory-allocation]]></category>
            <category><![CDATA[java-virtual-machine]]></category>
            <category><![CDATA[garbage-collection]]></category>
            <dc:creator><![CDATA[Vedika Sontakke]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 07:36:12 GMT</pubDate>
            <atom:updated>2023-10-17T16:09:50.599Z</atom:updated>
            <content:encoded><![CDATA[<p>The Java Virtual Machine (JVM) is a crucial component of the Java programming language, responsible for executing Java applications. One of the key tasks it performs is managing memory, which includes memory allocation and garbage collection. In this blog post, we will explore the JVM and its role in garbage collection in Java.</p><p><strong>How Compiler Works ?</strong></p><ol><li>Translation: A compiler translates the entire source code into machine code or an intermediate code in one go, creating a separate executable file.</li><li>Execution: Compiled programs are executed as separate binary files. This makes them generally faster to execute since there’s no need for on-the-fly translation.</li><li>Debugging: Debugging compiled code can be more challenging because you usually don’t have the same level of interactivity and detailed error messages as with an interpreter.</li><li>Platform Independence: Compiled programs may be less platform-independent because the compiler generates code tailored to a specific platform.</li><li>Resource Usage: Compiled programs typically use fewer system resources during execution.</li><li>Examples: C, C++, Java are examples of languages that are typically compiled.</li></ol><h3><strong>Java Virtual Machine (JVM)</strong></h3><p>The JVM is an integral part of Java’s “Write Once, Run Anywhere” philosophy. It allows Java applications to be platform-independent by executing Java bytecode on different platforms. The JVM takes care of various tasks, such as memory management, security, and runtime execution of Java applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnvkH-Cpdcyo5RNLwBMJqw.jpeg" /><figcaption>Java: Write Once, Run Anywhere</figcaption></figure><h3>Architecture of the JVM</h3><p>The JVM’s architecture is one of the main reasons why Java is such a popular programming language. It allows Java programs to run on a wide variety of platforms without modification.</p><p>The architecture of the JVM can be divided into three main areas:</p><ul><li>Memory area: This area is responsible for storing the code and data that the JVM needs to execute a Java program. The memory area is divided into four main sections:</li><li>Class loader: This section loads class files into memory.</li><li>Heap: This section stores all objects that are created by the JVM.</li><li>Stack: This section is used by the JVM to keep track of method calls.</li><li>Program counter (PC) registers: These registers store the address of the next instruction to be executed.</li><li>Execution engine: This area is responsible for executing the bytecode that is loaded into memory. The execution engine does this by interpreting the bytecode and converting it to machine code that can be executed by the underlying hardware.</li><li>Just-in-time (JIT) compiler: At runtime, bytecode is converted to machine code in this section. Java programmes can run much faster as a result of the JIT compiler’s ability to optimise the machine code for the particular hardware that the programme is executing on.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aopjKUymeOSGRabrAgKA1g.jpeg" /><figcaption>Java Virtual Machine (JVM)</figcaption></figure><h3>Memory allocation : Heap</h3><p>Memory management in Java is automatic, thanks to the JVM’s built-in garbage collection system.</p><p>Memory allocation in the heap is a process of requesting and obtaining memory from the operating system for use by a program. The heap is a region of memory that is used to store objects and other dynamically allocated data.</p><p>When a Java program creates an object, the JVM allocates memory for the object from the heap. The amount of memory that is allocated depends on the size of the object. Once the object is no longer in use, the JVM deallocates the memory from the heap. This is where garbage collection comes into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TLQW7KFIoo3Wuf42INsRSQ.jpeg" /></figure><p>JVM’s Role in Garbage Collection</p><p>The JVM’s garbage collection process involves several components:</p><ol><li>Heap: The heap is the region of memory where Java objects are stored. It is divided into two main areas: the Young Space and the Old Space.</li><li>Young Space: Newly created objects are initially placed in the Young Space.</li><li>Old Space : Objects that survive several garbage collection cycles in the Young Space are promoted to the Old Space.</li><li>Garbage Collector: The JVM employs garbage collection algorithm to manage the heap memory. These collectors are responsible for identifying and cleaning up unreachable objects.</li><li>Object References: The object references are tracked by the JVM. Candidates for garbage collection are objects that the programme is no longer referencing.</li></ol><h3>What is Garbage Collection ?</h3><p>It is the method of automatically recovering unused memory by deleting unnecessary items.</p><p>The programmer is in charge of both the creation and destruction of objects in languages like C and C++. And failing to get rid of unneeded items can eventually cause “memory leaks,” as we like to call them. After a given amount of time, memory will no longer be accessible to generate new objects, and Out-Of-Memory-Errors will cause the entire application to crash. In Java, garbage collection happens automatically during the lifetime of a program, eliminating the need to de-allocate memory and therefore avoiding memory leaks.</p><p>Garbage collection occurs automatically in Java throughout the course of a programme, negating the need to de-allocate memory and preventing memory leaks as a result.</p><p>Java programmes create objects in the heap area of memory while executing on the JVM. This area of memory is automatically handled by Java programmes using Java garbage collection.</p><p><strong>Ways In Which Objects Are Unreferenced…..</strong></p><p>In the Java programming language, an object is unreferenced when there are no longer any reference variables pointing to it. This can happen in a number of ways, but the three most common ways are:</p><ol><li>Setting a reference variable to null. When you set a reference variable to null, you are indicating that the variable is no longer pointing to any object. This means that the object that the variable was previously pointing to is eligible for garbage collection.</li><li>Assigning a reference variable to another object. When you assign a reference variable to another object, you are essentially breaking the link between the variable and the object that it was previously pointing to. This means that the previous object is eligible for garbage collection.</li><li>Anonymous objects. Anonymous objects are objects that are created without being assigned to a reference variable. These objects are eligible for garbage collection as soon as they are created.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1Qpd62ty9XzkV3z5819lA.jpeg" /><figcaption>Example : How to unreferenced an object</figcaption></figure><h3>finalize() and gc() method</h3><pre>public class GarbageTesterExample<br>{<br>    public void finalize () {<br>      System.out.println(&quot;Object&#39;s garbage collected&quot;);<br>    }<br>    public static void main(String args[]) {<br>    <br>      GarbageTesterExample obj1 =new GarbageTesterExample () ;<br>      GarbageTesterExample obj2 = new GarbageTesterExample () ;<br><br>      obj1=null;<br>      obj2=null;<br><br>      System.gc() ;<br>    }<br>}</pre><p><strong>Output :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FEOPqZvGFz9y_L00fK28w.jpeg" /></figure><p>The finalize()method is called by the garbage collector just before an object is removed from memory. It’s used for final cleanup operations before an object is reclaimed by the garbage collector. When an object is no longer referenced by the application and is considered eligible for garbage collection, the JVM calls the finalize() method on that object.</p><p>The gc() method is used to request that the Java Virtual Machine&#39;s garbage collector perform a sweep and attempt to clean up objects that are no longer in use, making their memory available for new objects.</p><p>The gc() method is found in System and Runtime classes.</p><h3><strong>Conclusion</strong></h3><p>Understanding the Java Virtual Machine and its role in garbage collection is essential for Java developers. The JVM’s automatic memory management ensures that Java applications run efficiently and avoids memory-related issues. By managing the heap memory and employing garbage collection algorithm, the JVM allows developers to focus on writing Java code, knowing that memory cleanup is handled for them.</p><p><strong>Group ID</strong> : TY - 66</p><p><strong>Group Members :</strong></p><p>Pranav Sangave(Roll № 13)</p><p>Vedika Sontakke (Roll № 44)</p><p>Tejas Thakur (Roll № 61)</p><p>Varad Uplanchiwar (Roll № 66)</p><p>Chaitanya Patil (Roll № 83)</p><p><strong>Guided By:-</strong></p><p>Prof. Anant Kaulge</p><p>Prof. Dr. Jyoti Kanjalkar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92b0ffee1809" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of Machines : An overview of supercomputer]]></title>
            <link>https://medium.com/@vedikasontakke2003/the-rise-of-machines-an-overview-of-supercomputer-bb029ba60153?source=rss-913f9c22f7e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb029ba60153</guid>
            <category><![CDATA[what-is-supercomputer]]></category>
            <dc:creator><![CDATA[Vedika Sontakke]]></dc:creator>
            <pubDate>Wed, 08 Feb 2023 13:16:18 GMT</pubDate>
            <atom:updated>2023-02-08T13:16:18.336Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Rise of Machines : An overview of supercomputer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V1xcL9s6gC4t3ZJhAHlh-g.png" /><figcaption>An overview of supercomputer</figcaption></figure><p><strong>What is supercomputer?</strong></p><p>A supercomputer is a high-performance computer that is capable of performing a massive number of calculations per second. These machines are designed to solve complex problems that would be impossible for a regular computer to handle, such as simulations of climate change, scientific research, and cryptography.</p><p>A supercomputer can be thought of as a highly advanced calculator on steroids. It’s like having a giant brain that can perform complex calculations and simulations at lightning speed. Think of it as a giant puzzle solver, helping us to crack the toughest problems in science, weather, and research. It’s like having a team of geniuses working together all at once, but instead of people, it’s a combination of many powerful computer processors working together. With its immense processing power, a supercomputer can process more information and find solutions faster than any regular computer.</p><p><strong>When were supercomputers first created ?</strong></p><p>The concept of supercomputing dates back to the 1960s, when the first supercomputers were created to solve complex scientific problems. Over the years, supercomputers have become faster and more powerful, and today they are used in a wide range of industries, from finance to engineering to weather forecasting.</p><p>In the following decades, advances in technology led to the development of increasingly powerful supercomputing systems, and by the 1980s, supercomputers became essential tools.</p><p>In recent years, advances in cloud computing and the development of more powerful and energy-efficient processors have made it possible for organizations to access supercomputing power without having to invest in expensive hardware. Today, supercomputers continue to play a critical role in many scientific and engineering fields and are constantly pushing the limits of what’s possible with computation.</p><p><strong>Why it is called “SUPERCOMPUTER” ?</strong></p><p>A supercomputer is like a star player of the computing world. It has abilities far beyond that of a regular computer, and can tackle calculations and simulations that would take a regular computer years to complete in mere moments.</p><p>Think of it like having a superhero team of mathematicians, each with their own unique power, working together to solve complex problems. The name “supercomputer” is a nod to its exceptional abilities and its status as the top-performing computer in the computing world.</p><p>Just as a star player’s powers allow them to save the day, a supercomputer’s exceptional processing power and speed allows it to solve some of the most challenging problems in science, engineering, and beyond. It’s the star player of the computing world, coming to the rescue when traditional computers can’t keep up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*SNC-SYdN9Sm3dJ86eY2Bwg.jpeg" /><figcaption>super computer clusters in the room database</figcaption></figure><p><strong>Understanding the Variations : Supercomputers and Computers</strong></p><p>Personal computers from 80’s and 90’s were serial processors .They performed operations one thing at a time, like checking things off a to-do list in an orderly fashion. PCs we have today have made a lot of progress and can perform multiple operations at a time. But for problems that are extremely complex , like simulating molecular behavior or modeling the Earth’s climate , Serial processing would take way too long.</p><p>Supercomputers solve this problem by being able to perform many operations at once, in parallel . This kinds of computers have more processors and split problems into chunks with each processor working on a differnt piece and all the processors working together at the same time</p><p><strong>Types Of Super Computer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*m7MDwiPCluxNLx9OUWqqvA.jpeg" /><figcaption>Types of supercomputer</figcaption></figure><ol><li><strong>Clustere Super Computer</strong></li></ol><p>A cluster supercomputer is a type of supercomputer that consists of multiple interconnected computers, known as nodes, working together as a single system. Each node in a cluster supercomputer has its own processing power, memory, and storage, and they are connected through a high-speed network. This allows the nodes to work together to solve complex problems that require a large amount of computing power.</p><p>Cluster supercomputers are designed to be scalable, so that additional nodes can be added to the system as needed to increase its computational power. They are commonly used for scientific simulations, data analysis, and other demanding computational tasks. The use of multiple nodes also helps to increase reliability and reduce the risk of failure, since the system can continue to operate even if one of the nodes fails.</p><p><strong>2. Vector Supercomputer</strong></p><p>A vector supercomputer is a type of supercomputer that is optimized for performing mathematical operations on large arrays of data, also known as vectors. Vector supercomputers are designed to perform vector processing, where the same operation is performed on multiple data elements in parallel. This type of supercomputer is well suited for problems that involve linear algebra, image processing, and scientific simulations, as well as other tasks that involve large amounts of data.</p><blockquote>When you ask a supercomputer to work on a problem , It can be like asking 100 million PCs to work on the problem — That is power.</blockquote><p><strong>Uncovering the Secrets Behind the Supercomputer’s :</strong></p><ol><li>Supercomputers are designed to perform complex calculations and simulations at a lightning-fast pace.</li><li>With an immense amount of RAM and high-speed memory, supercomputers can store and access data in a jiffy.</li><li>The scalability of supercomputers makes it possible to expand and integrate with other machines, giving you the power you need when you need it.</li><li>With built-in redundancies and backups, supercomputers are designed to be highly available, ensuring that they are always up and running.</li><li>With advanced networking capabilities, supercomputers can communicate quickly and effectively between their various components, supporting high-speed data transfer.</li></ol><p><strong>Supercomputing’s Weaknesses: A Closer Look at its Drawbacks</strong></p><ol><li>Supercomputers come with a hefty price tag, making them inaccessible for many organizations and individuals.</li><li>These machines require specialized knowledge and technical expertise to operate and maintain.</li><li>Supercomputers consume a large amount of energy and generate a significant amount of heat, requiring costly cooling systems.</li><li>Due to their size and weight, supercomputers can be difficult to transport and install.</li><li>Regular maintenance and upgrades are required to keep supercomputers running at their best.</li></ol><blockquote>Fun Fact : Problems that are really easy to split into chunks across a parallel computing network are called embarrassingly parallel problems.</blockquote><p><strong>From Research to Business: Applications of Supercomputers :</strong></p><ol><li>Climate modeling and weather forecasting: Supercomputers are used to model complex weather patterns and to predict future weather events.</li><li>Scientific research: Scientists use supercomputers to perform complex simulations and to analyze vast amounts of data in fields such as biology, physics, and chemistry.</li><li>Cryptography: Supercomputers are used to crack encryption codes and to secure sensitive data.</li><li>Financial modeling: The finance industry uses supercomputers to perform complex financial simulations and to analyze large amounts of financial data.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*MnD7RzJNEkPqJ7Bm4MbDiw.jpeg" /><figcaption>Top 3 most powerful supercomputer</figcaption></figure><p><strong>India’s First supercomputer ?</strong></p><p>The Param 8000 was a significant development in the history of Indian computing, paving the way for the development of more advanced and powerful supercomputers in the years that followed. Its introduction helped to establish India as a player in the field of high-performance computing and made it possible for Indian scientists and engineers to tackle some of the most challenging computational problems of the time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*ccAWZFBA49SBCidbwZbqEQ.jpeg" /><figcaption>PARAM-8000</figcaption></figure><p><strong>India’s supercomputer ?</strong></p><p>PARAM-Siddhi is like a sprint champion in the world of Indian supercomputing, located at the headquarters of the Center for Development of Advanced Computers in the city of Pune. It holds the title of being the quickest Indian supercomputer to date, making it a leader in the field of high-performance computing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*20nosVRZH0xSse2aGazkdQ.jpeg" /><figcaption>PARAM-Siddhi Supercomputer</figcaption></figure><p><strong>world first supercomputer ?</strong></p><p>The CDC 6600 was a computer released in 1964 that is sometimes considered the first supercomputer. However, there were other computers before it that were also powerful, like the UNIVAC LARC in 1960, the IBM 7030 Stretch and Manchester Atlas in 1962, and the IBM NORC in 1954.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/269/1*ezG3VtJRN8gSKiwVUZSixA.jpeg" /><figcaption>CDC 6600 Super computer</figcaption></figure><p><strong>The 60th TOP500 was published in November 2022 which is called as India’s fastest supercomputer .</strong></p><p>So , supercomputers not only solve some of the world’s toughest problems, but also present interesting software and hardware challenges for the world’s most creative problem-solvers.</p><p>supercomputers are highly advanced systems with exceptional processing power and speed, capable of handling complex computations and simulations in a fraction of the time it would take a regular computer.</p><p><strong>Group ID :</strong></p><p>SEDA-05</p><p><strong>Group Members :</strong></p><ol><li>Dr. S. T. Patil</li><li>Ayush Tathe</li><li>Shreyash Bandi</li><li>Pranav Sangave</li><li>Vedika Sontakke</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb029ba60153" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>