Monday, June 25, 2012

A Compilation of Life

Life seems to be so simple at the first few years of your birth, even though we don't know at that age what life is? In fact, we have never ever found the reason of our existence, yet some people explain it as a complex process of going through a cycle of birth and death, it is far more vast than that simple definition. In this post we will see what life can be best explained as. This post is a bit technical in the way it shows the analogy of a computer program running on a system with a human's life. It's going to be interesting for you. Keep reading.
Everyone was tensed, a new guest was going to come into their life. Finally, he arrives. He was crying and everyone else was laughing. It was the first chance of exception that occurred in this runtime environment of life. However, this exception was very well handled by the handler since, the life had just started executing and not completely loaded into the memory, the handler, simply catched the exception and dumped it without any explanation. The life of that boy was now going through many complexities as he was growing older. In his twenties, a complex conflict arises when the data stored in the program counter was accessed by a malicious hardware and changed it, in the life of that boy, a serious illness had put him into a situation of live or die. A natural method that the programmer had followed while it's creation was to match the program counter with the cache memory that was used here to store the data about previous and next instruction, this simple approach saved the program from crashing, some memory loss happened and it was replenished after a complex procedure call, so was the case with that boy, he finally survived after taking proper medical services.
It was his mid twenties when he found a girl and they fall in love with each other and finally get married, it was like the program running into memory find another program that was residing into memory and could help it do more work faster. A call to that program from the already running program created a separate thread on the logical processor with a shared block of memory for inter-thread communication, and finally they merge together into a single thread. They lived happily and finally got a baby. It was like, the program after merging together, required more parallel processing so, it created a child thread ie. a sub-thread that ran parallel to the main thread.
After a few years the child grown into a big man and found a girl and got married, now he was living his own life. It was like, due to few memory related issues and conflicts. The sub-thread after granting permission from main thread, started executing as an independent thread, and loaded another program from memory and merged the thread into single thread, finally generating a child thread.
Now, life started speeding up. Many years crossed, at this age of mid-seventies, that man had developed several health related issues. It was like, after residing into main memory for too long, the program started to find many memory leakage issues due to not so good memory management. These issues led to many unhandled exceptions that may had crashed the program, but the programmer had written some very intelligent codes, that collected all the unhandled exceptions into a garbage collector and disposed them. This kind of programming approach also saved him from searching for all the possible exceptions that may arise, but created serious issues with data loss. Finally, in his end seventies, that man died and got another birth once again somewhere else in this world. It was like, after severe memory leakage issues and some critical data loss made the program to crash, but the programmer had added a few codes that led to a situation that the two thread that were running in conjunction split into there native form and then the severe unstable thread was ended and disposed by the operating system, and a fresh copy of that program was once again loaded into memory and started executing.
This was the simple analogy of human life to a computer program. Hope you have liked this non sense post. Enjoy your life. Please do leave your valuable comments.


2 comments:

  1. What an interesting perspective! And it makes sense too, that's the scary part.

    ReplyDelete
  2. Thank you very much for giving your precious time to my blog... I am very happy that you liked my perspective and very Thank you for leaving such a lovely comment. I am sorry for a late reply.. :-) Anyways... Enjoy your Day.... :-) Keep Reading... Subscribe me on RSS feeds.... :-)

    ReplyDelete