Garbage Collection The Technology To Avoid Memory Leaks | HI ...

Posted by on September 22nd, 2011

As computer technologies evolves, the technologies to program the personal computer also takes new types. There are a lot of organizations in the field of programming languages. There is Microsoft, Sun Microsystems, and Apple to name a few. There are many challenges that a programmer faces even though programming an application which is easy to use and so robust that it does not breaks down under demanding situations. Previously when the technology behind the design of programming language was in nascent stage, it was extremely tough to system a personal computer. Primarily the arcane assembly language was utilized. But programming assembly meant you had the potential to learn a new language syntax which resembled Sanskrit or Latin!! Due to technological complexity, it was not a regular programmer who programmed for the clunky machine named PC.

In these difficult occasions, you had to deal with the hardware immediately. No matter whether it was major memory storage or secondary storage gadget operation like saving on floppy or hard disk, a single had to deal with the hardware straight in language and the language itself was quite terse to comprehend and write code into. Then came the so known as mother of all language C. With advances in the computing engineering the programming languages also started to take on a new type in which one particular could system in English like language. But the scenario was much more or much less the same. Specially, dealing with memory was largely an uncharted territory for an average programmer. Memory leaks were really widespread in software?s and a true killer.

Memory leaks refer to the situation when an executing program claims a patch of memory but forgets to cost-free it. As a result there is a significant quantity of unclaimed memory in the primary memory region. This makes much less and less resources accessible to an executing system. Clearly this was a extremely significant issue as the software?s behaved erratically. Many programming guru suggested that in place of depending on most recent technologies to resolve these form of problems, we should tackle these problems by adopting excellent programming practices. Like if you have claimed a memory from personal computer, you ought to cost-free it also, use memory with caution and use it as and when actually necessary.

Not many heeded to the suggestions as a group of programming folks had been of view that going too far in adopting these practices will result in a bloated code. Hence one thing new in laptop or computer technologies was once more expected to resolve these perennial difficulties. Newer and more sophisticated programming languages came into getting and with each advance there was something new , one thing improvised but the problem of memory leaks was far more or less the exact same. A lot of languages did not introduce any radically new thing but these languages introduced new syntactical sugar which allowed improved structure of code. But once more these technological advances could not solve the difficulty linked with memory leaks.

Then a miracle occurred in newest pc engineering globe. The most well-known language Java was invented and this technological innovation altered the programming paradigms forever. The language even nowadays has a cult following and is possibly the most advanced programming technological innovation. Java solved the dilemma of memory leaks for excellent. Java employs the garbage collection technological innovation for this. Garbage collection engineering employs an algorithm in which a lightweight procedure runs in the background when the plan is executing. The second there is a patch of memory which is unused the garbage collector reclaims it. And thus avoids memory leak. This engineering is being employed by a lot of most up-to-date laptop or computer language like C# from Microsoft. Hence we see that Java engineering has changed the programming world for good.

Both comments and pings are currently closed.

Source: http://www.irc-plus.org/cool-software/garbage-collection-the-technology-to-avoid-memory-leaks.html

bourbon cruises delaware delaware hurricane names weather philadelphia mma