Parallel processing in Ruby

Parallel Processing can be achieved in two different ways, multi-core and single process threaded architecture. In a Multi core environment independent operations are shared between multiple CPU cores so as to obtain considerable improvements in performance. A single core threaded setup uses a single process with multiple threads for each individual operations using thread context switching for switching between the execution of different threads.  Threads are ideal where operations wait for longer times during I/O operations. When one Thread is blocked for I/O  a context switch takes place to another thread.  This results in collective improvement in performance.

A very simple example of using parallel processing(Threaded or Parallel Processes) is by the gem Parallel.

Note: Using Threads are dangerous and could result in actually slowing your execution if done wrongly be Warned.


Bikhre Bimb- Play Review

Bikhre Bimb is the much talked about play Written and Co-Produced By Girish Karnad, featuring Arundati Nag. This play appears quite frequently at Ranga Shankara, and I had missed every opportunity to watch this play for the past one year.  But Saturday was finally the day I got to watching the play, that after ditching a couple of other plans and a  25KM bus ride to get to Ranga Shankara.

Bikhre Bimb Starts out With Manjula, a Kannada Poet turned English Novelist who’s recent book has become a International success, addressing a press conference.  The pace and the confusion at the start of the play overwhelms and bores you a little bit.  But once thing settle and Nag’s One act play takes center stage there is no looking back. The life brought into the character of Manjula Sharma is as if it will convince the audience that Manjula Sharma is taking  stage and giving a live press conference. Then there is the twist of use of Technology and the prefect synchronization with the act.  One cannot Imagine the hours of hard work the crew  might have put to arrive at such a level of perfection.  Although the play is quite intense, there are quite a few lighter moments, concealed in it the plot slowly builds to a climax and a chaotic end.  Overall this is one of the best plays I have seen.

BCB13 follow up and slides

Firstly Thank you to the organizers of Barcamp Bangalore for such a awesome event and the participants for being such a awesome audience. Special Shout outs to @Satyabhat and a couple others whom unfortunately I could not talk to find out their names.

Here is the link to the slides for the talk
The slides are powered by Timline JS.


– Most of the content was inspired from the Coursera course ‘Internt, History, Technology, and Security’


– The User agent String story was inspired by

– The 2chan and something awful story was inspired by a reddit comment( Cant seem to find a link)

– Much of the Mosaic and JS stories where inspired from a talk by Crockford