Thursday, August 23, 2012

The Power of Imagination

Hi Folks, I am back again with another interesting topic "Positive Thinking". Would you believe me if I say that "A lot of things happen in this world just by merely imagining or dreaming about it?". Well! That's a fact and the power of imagination. Lets consider a simple scenario where you want to visit a five star restaurant and their best possible dish. All you have to do is to imagine yourself entering the restaurant and eating the disk(though you never really know what are they going to serve you :P ). Now my point here is all the things in this world are connected and act like a magnetic field. Things you imagine have the highest possibility of you attracting it (whether its positive or negative). Whatever the heights or whichever the league you want to reach or enter just start imagining with a positive frame of mind and I assure you that it would be a cake walk. The purpose of me writing this post is that I have experienced it. One of my personal experience is my post graduate study in New Zealand. I have always dreamt of studying in this country. My heart asked me to apply to New Zealand whereas my brain "commanded" me to go for US. In the end you are where your heart belongs to because once something has indited inside your heart it means that you have imagined and dreamt a lot about it and it has sunk in so deep without your knowledge.You might think "This is nonsense man!" but this is the truth that cannot be argued upon. Never get contented with anything in life and crave for more success. World has abundant amount of competitors. You have to whack yourself every-time you lose focus. Be strong, stay strong. God Bless!!

Monday, August 13, 2012

Chaos in Parallel Programming

Finally felt like blogging again so here it is a new post, a new topic. This time it is more towards the technical side. For the past so many weeks I had this stupid doubt on threading concepts and threads. Most of the techies would understand what a thread is but those who haven't heard of the term at all its not a problem. You all could still give me some general comments which "might" clear my doubt. Basically a thread is a smallest unit of processing that can be scheduled by an operating system. Well! this is the definition but to explain in simple terms it is a process in your windows 7, mac. OK! so what is a process? It an unit of work or rather in simplest terms its one of your applications like Microsoft word or Tetris game. There are quite a few programming languages which would support threading. Well! I have heard most of my professors say threading is a logical process happening in the backend and there is no way to control it while it runs. My first questions Then what is the use of it? Most of the answers would be concurrent programming improves efficiency, makes your applications run faster blah blah blah. But still no one has answered my question(which is really simple) If you don't have the rights to control something then why use it? Now coming to the next doubt/question which is as stated by me "In Java you could start a thread saying .Start() or combine threads to run but applying the same parallel processing in c++ there are no inbuilt functions saying .start() instead you just use an API called openmp where you just specify #pragma parallel num_thread(n). Why use such API even? You dont even have an idea when the threading starts and stuff like that. Damn!! I am starting to realise one thing. "Never learn parallel programming" else such stupid doubts (which none can answer) arise. 
P.S: Non techies. Sorry!! I got too carried away with the post that I forgot to explain few alien terms.