The industrial revolution that changed the world occurred because of automation. We were able to make machines, very specific machines that were able to do jobs quickly, which might otherwise take multiple men to complete. I witnessed an example in a automated bakery in the outskirts of Riyadh. First manually added the flour and ingredients to the mixture. There was a huge machine to mix everything, create a dough, and pour it in the containers. The manual part again was to put the containers in oven, and then empty the containers to an assembly line, which dropped 1 cup cake (without cup) to the assembly line at regular intervals, which later wrapped A printed plastic sheet around the assembly line, and sealed the top. Next was a cutter, that stamped at each gap between cakes, to pack them into separate pieces. and then manually a person was assigned to collect the falling packets to cartons, and pass it further for sealing.

What an assembly line consisted of was a series of some what generic sealers, rotors, wrappers, mixers, assembled in a specific order to create the automated process. But the assembly and standardization of these individual pieces was hard. Every automation had a huge setup cost.

When the computer revolution occurred, We ended up making a common compute(r) that can process instructions. A generic, standardized, automated process. The biggest advantage was, this digital, precise machine can be connected to analog devices, and can be used to make any machine work, Robots, scanners, etc. The generic nature of this machine allowed it to raise the efficiency bar, (already raised by the industrial revolution). Then Moore’s law came into action. We will see the power of computation double every 2 year, with decrease in costs. A comparison made by many was that had such a revolution occurred in transport industry, we would all be using personal jet ski’s for travel now.

Anyway, even though a single assembly line (or computational core) can process a lot of stuff, the speed of other components didn’t increased as fast as the speed of processing increased.
So a lot of time was getting wasted in waiting for these smaller components, like accessing data from a memory storage, or accessing information from some other server. Seeing this wastage of precious computation resource, the same line could be used for other process, while waiting for this outside interaction to complete, Threads were introduced. Each thread is an assembly line, passing through the same processor, and whenever some one is waiting for a slower component to complete, the next thread gets a chance to use to processor, increasing the overall efficiency of the processor.

Hence the name Multi-Threading, processing multiple threads at the same time. Now even though these threads were doing potentially different work, their overall goals were related, and they were dependent on each other to complete some requirement for them. This led to another great concept of Thread synchronization. This allowed these threads (or assembly lines) to take a hard dependency on another thread to complete its job. Say I need to get information from another server, before I can proceed using the information.
The thread synchronization was achieved using what we call locks. One thread takes a lock of a marker, saying I am using this marker. The other thread waits till the marker is released by that thread, signalling the second thread that the first thread has finished processing. If the locks had been taken for minutes, it would have been easier for the marker to inform the second thread. However if the lock was taken for sub seconds, the locks time would be wasted more by informing, rather the second thread can keep asking if the lock is free now.

This is called spin locking. The next question is of the interval of asking. How much to wait before you ask again. If the interval is small, (sub- seconds), and the lock is processing a task for minutes, a lot of processing will be wasted. The thread will be waiting for the information and keep asking without doing anything else. A lot of useful time will be wasted. If the interval is large, say multiple seconds, and the lock is processing a task for sub-second, there would be unnecessary penalty for using locks.

The scientists agreed on the exponential growth model. the thread should keep doubling its interval of waiting. So it starts with 1ms, 2ms, 4ms, 8ms, and so on. This provides a balance between waiting and not disturbing.

This whole process was generic, and completely dependent on the program that uses it. So the question comes on optimization. How smaller can you break the tasks, so that they remain efficient, and the interaction cost is not more than the improvement obtained by splitting the task. As each task was split to smaller tasks, the thread processing it can be optimized for its specific task, and made the task efficient and exact.

So here is the final comparison.
If a single person works to complete the assembly line, it is going to take time, and its going to be unique. It will be called a unique art.
If a lot of persons contribution goes into the assembly of the common work, each working on independent tasks efficiently, and similarly, It will be called a generic product.

Posted in Behaviour, Coding, Organizations, Society | Leave a comment

My old watch

I was sitting in a conference room in a meeting one day, when someone asked how much time was left, and people started looking, some looked into their laptop screens at the bottom right corner, others took out their mobile phones to check the time, some other were searching for the LED displayed somewhere near the door of our room the time. I simply glanced at my hand and was able to tell the time.

Yes, I was wearing a wrist watch, a pretty old looking, rugged, slightly rusted wrist watch. One of them commented “how old school are you to be still wearing that. At least tell me it is battery powered.” And the group smiled,

There was a time when the biggest marvel of the world was a watch. a mechanical watch, that was functioning purely using energy stored in a spring. Yes, it seems to be a stretch today, how much energy can be stored in a spring, well apparently the one needed to run a watch, for a very long time. My own first watch was mechanical, I needed to wind it up every day, and the watch ran for a whole day.

Some of the most intelligent people of the generation were watch makers, Just open up a mechanical watch and see all the intricate fine design, and do know that these designs were not created on some fancy computer software, these were made on paper. The watches existed before the industrial revolution, so each tiny piece of the watch was created and assembled by direct human labor. There were innovations in the watch, so that some watches function without a spring, but by movement of wearer’s hand. If he walked with moving hands, the spring got wound automatically. etc..

The watch that was tied around my hand was a representation of contribution of some extremely smart people around the world, who came together to build something so incredible, that even today if you try to design one from scratch you can see how hard it would have been. It was a representation of how so many small pieces of metal that were nearly useless separately come  together to run something so effectively and accurately that people can rely on them almost blindly. And if small parts become faulty, worn out, the other parts supported the functioning, so that the watch never stop. But if any small part broke or was removed, some critical function of the watch will stop functioning indefinitely, until the part is replaced.

Even today, some extremely smart friends of my father are watch makers of watch repairmen. They don’t earn the most handsome salaries around the town, nor are they involved in the political and social movements occurring in the town. But they knew their role, as a watch maker, as insignificant as they might seem, without them the society will cease to do some of its most important functions. Everyone had their place in the society.

As the science progressed, we removed the spring and used a battery powered watch, then the dials were removed and we replaced it with a digital display, and so many intricate small components were replaced by a handful of bigger components. These components were standardized, so they became easy to replace, easy to understand, and no longer had the requirement for them to be designed and made together, specially for each other, and the watch repairmen were not needed to be so smart anymore.

I am not complaining because the glory and need for intellectuals have reduced, but the small piece of history tied to my hand tells me the marvels that were achieved, and slowly and slowly how standardization is removing the glory of the craft.



Posted in Behaviour, Organizations, Society | Tagged , , | Leave a comment

Political party system in a democracy.

My frustration comes from recent incidents like Dadri Lynching, Beef Ban, and complete non-response from the top BJP members to stop this.

I have been a great fan of AAP, up till some of its core democratic principles were sidelined in order to speed the progress, I am of course referring to expulsion of Yogendra Yadav and Prashant Bhushan from the party. Removal of Lokpal Admiral Ramdas, and most recently dissolution of AAP’s Maharashtra’s branches, and getting a new head for Maharashtra unit. There have been many other critical steps taken by AAP that I disagree with, but the for me the most troubling ones had been the above mentioned ones.

That brings to question, what exactly could have been done differently. I was recently pointed out that every system has its positives when introduced, but slowly issues creep up, and we have make changes. These issues were not even considered when originally planned.(Illustrated very nicely in book Series Shiva Trilogy, by Amish Tripathy, though I haven’t read it yet, I trust the judgement of the person who informed me.)

First individual selfish gatherings, then community, then elderly group, then monarchy, then democracy. There have been various forms of governments, each improving on some aspects of the past ones, Which points out one thing very clearly, there is no perfect solution yet.

Now coming to current discussion, the democracy in India, Being one of the largest democracies, India has a massive scale to test democratic ideas and principles, and find out vulnerabilities in a system, and hence a massive challenge to address them in time to improve.

Ill try to list down some major concerns I have with the current system.

  • 2014 election and BJP’s win on a single persons (Narendra Modi) image and propaganda. The concern is, that due to what was termed as Modi Wave, a wide range of people got into elected positions, just because they got a ticket to contest for BJP in the area. Their affiliation to a political party got them their MP seat. Their individual characterstics, criminal background, Educational background was not considered.
  • Post 2014 election, the inability for people in the highest chairs, PM and MP’s to be held accountable to events like ‘ghar wapsi’, ‘beef ban’, ‘church vandalization’, etc, where the execution of Parliament was blocked to just get a comment out of PM. Which never came.
  • Post 2015 Delhi election, AAP leaders could not be held accountable for removing Yogendra Yadav, Prashant Bhushan, and Admiral Ramdas. Many changes were against party constitution, but still. A case against them would take years to resolve, just to turn the decision of removal.
  • The fact that people have to wait for another 4 years after which they can hold MP’s accountable again. Which would be sidelined by placing Pigs in Mosques and Beef in Temples, (See Bihar election), so the important questions are forgotten, and only current topics are discussed.
  • Slow Judicial system, and its inability to prosecute the people, who polarise the community before elections.
  • MP’s from a political party cannot disagree to the proposal raised by their party, cannot support the CM of another party (unless its 1/3rd in strength). and so on.

I believe the major issue that we are seeing is the lack of individuality in the elections, and after the elections. So Here is a thought experiment.

Consider a democracy, where there are no political parties, just individuals.Where elections are fought and won on individual names, not their associations. CMs are decided by voting among the selected MLAs and PMs from voting by MPs. Just a representational electoral chain. People well in advance can declare their consideration for CM/PM hood, and others claim their support to them. So say I want Modi to be the PM, I can chose among many people contesting for MP, who support Modi for their vote. And the house is not made by trading support of political parties, but by people, after declaring an agenda. If the PM/CM sidelines from the agenda, or do not respond to a concern of the citizens, a No-Confidence motion can considered to re-asses the majority of the PM. Which is how he can be held accountable to the MPs.

Next the MPs can be held accountable by the lower level of elected representatives, and so on till the individual community, whose leader can be accountable by votes in that community.

This system seem to be very hard to implement, and seem to be very unstable as people do not have a fixed term, to work independently. So to address that, we can add No-Confidence motion can only be raised when Parliament is in session, which may give a gap of 6 months stability, and a total of 5 years before complete re-election.

Now in this complete system, if a group of individuals want to come together under a common ideological umbrella, and name it something, let it be, but that cannot be a restriction later.

And as always the judicial system need to be improved. Which is in a very bad state today.

After feeling down for so long, I came across Javed Akhtar’s interview.

Lets all hope India comes out of these incidents stronger, and resilient.

Jai Hind.

Posted in Uncategorized | 2 Comments

An evening in shayari.

Riyasat Kaash Tajurbon ki hoti…

Nahin hota Waris ka Rutba itna Mamuli.

Riyasat – Empire, Tajurbon – Experiences, Waris- Inheritor

Aasmaan ka Darja uuncha rahe taaron se…

Jo Aasmaan na hota to kahaan hote yeh.

Darja-Status, Taaron- Stars

Faanuus ne andheere mein ujaala kya kiya…

Bhool gaye log apne sone ka waqt.

Faanuus – Chandeliers,

Taaron ke baahar bijli hai wahi…

Jise log Jaadu kaha karte the.


Kahin Khaane ki hai numaaish, hain kahin Faaqe…

Siyaasatdaaron, yeh najaayaz nahin hai.

Numaaish-Show off, Faaqe- Fast(hunger), Siyasatdaaron- Owners of the Empire, Najaayaz- Illegal

Main Hindu, main Musalmaan, main Sikh, main Isaayi…

Gar main sab nahin, mai koi nahin.

Gar- Agar(if)

Chamakte Farshon se tumnein safai pehchaani…

Aur garibon ko Ganda kar diya.


In Bacchon ko bachpan se hi do tarbiyat….

Ki kaise yeh tumhaari khwaish ban sakein.

Alt: Ki kaise yeh tumhaari tarhan ban sakein.

Tarbiyat – Values

Nahin hai Kalam paise se taqatwar…

Nahin aaj nahin hai.

Kalam- Pen, taqatwar-Powerful

Udaasi ki bimaari ka dawa se ilaaj karte ho…

Bas Ghareebi ki dawai na bana lena.

Har Galti ki saza milni zaroori ho….

Galti ko Gunaah bante der nahin lagti.

Kya Galat kya Sahi, Yeh faisla kaun karega…

Khuda karega ya Guzre Zamana karega…

Kaunsa Faisla Galat, kaunsa Sahi, Yeh faisla kaun karega…

Khuda karega ya Guzre Zamana karega.

Guzre-Ongoing, Faisla-Decision

Zinda hun aaj bhi yeh soch kar…

Ek karz hai jo zamaane ko chukana hai…

Karzdaar main hun, ya yeh zamaana mera,

Aaaj bas itna Samajhna aur Samjhaana hai.

Posted in Behaviour, Organizations, Shayeri | 2 Comments

Mujhe naam na do (poem)

Kabhi to mujhe apne tajurbe se jaano,
Pehchaano mujhe, Mujhe naam na do,

Zindagi ne mujhe naam diya tha jo,
Taaki meri pehchaan karsake laakho mein woh,

Kayi dino tak kayi naame soche,
Phir socha chalo Shahzor naam rakhlo

Aaj naam se mujhe parkha jaata hai,
Mere khaandan mere yakin ko samjha jaata hai

Mujhe apna ya paraya parakhne ke liye,
Milte hi mera naame pucha jaata hai

Koshish karte hain log meri aadaton ka andaaza lagain,
Apne pichle logon se milne ke tajurbe ko aazmain,

Phir meri kuch baat buri lag jaaye to,
Mere saath hue kisse ko aage aur logon pe lagayein

Aisa sapna maangta hun gujarti raaton se,
Jaane mujhe log meri aadaton se

Samjhein ke mere jaise hain sabhi log,
Sabhi alag banjaate hain haalaton se.

Kabhi to mujhe apne tajurbe se jaano
Pehchaano mujhe, Mujhe naam na do.

Haste the log bulakar mujhe suvar sa safed ya raat sa kaala,
Itna bhi nahin socha is naam ne mera kya hashr kar daala.

Jab bistar se uthna, lagta tha dil ko bhaari,
Chalo ek aur din, karte karte diya saal guzaara,

Haste the log kehkar mujhe lambu ya mota,
Socha lamba hai sar phod lega, mota hai to hoga chota

Kaash rok deta un sabhi ko usi waqt,
Kya karein akela tha, jitne dost the unhein bhi khota.

Kyun nahin samajhte log aqliyat(minority) pe zimmedaari ko,
Jab jashn mana sakte hain aur badha sakte hain kalakaari ko,

Har soch, har zindagi, har zamin ko mile barabar Zaahirat (representation),
Gar nahin yakin to seekh lo is adaakaari ko,

Kabhi to mujhe apne tajurbe se jaano
Pehchaano mujhe, Mujhe pehchaan na do.

Kabhi to mujhe apne tajurbe se jaano
Pehchaano mujhe, Mujhe naam na do.

Posted in Behaviour | 1 Comment

Mujhe Naam Na Do

The day I was born, I was named Shahzor Khan,
My parents undoubtedly named me after doing a lot of thinking and name finding, but they also named me a Muslim.

As very beautifully said at the end of the movie “A Wednesday”, people find religion in the name of others.
In Muslims and Christians, its only religion, in Hindus, it is their caste, which essentially tells what your ancestors did for a living.

So I post my first question, why don’t we use names that are more religion specific.
People like naming their children to great people of our times, Which in a way reflect Cultural heritage.
Next people do think about Naming kids with beautiful meanings, but the language origin of the name tend to give away the religion,
As Arabic, English/Latin, Hebrew, Sanskrit all are related to religions.

Consider the name Ray(Light), John(Personality), Samuel – You first thought from the name is that they are Christians,
Then Consider Ravi(Sun), Chandni(Moonlight), Vishal(Huge)- First thought is always that they are Hindus. Or one among Indian based Religions.

And an amazing irony is when ever a person converts his religion, due to any religion, (I am talking more about Hindu-Muslim-Christian conversions), he goes ahead and changes his name.
It kind of spells out that the name is meant to identify your religion.

I don’t have any problem with any of these names, or that it is in a specific language, I am concerned because religion, which is supposed to be a personal thing in this new age of Globalization, is not personal, its widely a community thing. This may have been true, Since earlier only one religion was known to a community, and all of them followed it either mildly or rigorously, without questions asked. It is changing now, since the communities are getting settlers and they bring in new ideas, new religions.

And when it becomes a community thing, it creates an ideology that a community should propagate or protect their religion, which leads to clashes and conflicts.
Can this be avoided? Actually it is getting slowly avoided.
I see it more as a language issue, Being not connected, the world created a vast number of languages, which now are mostly getting second preferences and getting reduced.
Its no shame in acknowledging that English is becoming major language in the world, a kind of standardization for communication.
As time and generations pass, the languages are going to get diminished and a single language will continue, and naming will be limited to it.

But my idea for this post is not limited to that.

It is to explore naming, in general, including name calling by people with names other than the birth names.
I recently came across a video on campaign “Dark is beautiful”, which brought back the name calling memories and prejudices people had.

First lets get behind the creative mind of the person who introduces a new name for another person.
These names tend to be descriptive, and derogatory.
Consider a person calling another one a Bastard or a Mother F***er, this name is derogatory, but not descriptive, as the person being referred to does not relate to the name in any sense so it do not relate to shaming.
Now consider a fat person being called a hippopotamus, or a long person being called a tower, or a dark person being called a “kaali bengali”, this is descriptive and this is shaming.
Now lets ask ourselves naively, what does the name caller get from inventing such a name, a laugh, probably a laugh from friends, a sense of pride for inventing something new.
And now realistically, he gets a sense of pride being fit, of Ordinary(or Correct) height, or being fair. He gets a sense of being better than the person being referred to, and implies that with his remark.
No wonder pride is counted as one of seven sins.

Now what can we do to help this?
I think we have been silent and removing ourselves for too long leaving these mindsets to thrive.
I think we should confront a person for saying such things publicly and make him realize it is unacceptable to bear such people.

Hope the world moves towards a more accepting and embracing side or humanity.

Posted in Behaviour | Leave a comment

Why I as a Indian do not wish to vote for Narendra Modi in the context of Secularism.

Consider a thought experiment.

Lets say that in one of the proclaimed secular countries, A country exists which has around

80% religion A,

13% religion B,

7% other countless religions, including some tribal religions.

Now lets go ahead and consider the country is Democratic. Which means any notion of voting in the name of religion will clearly favour the religion A.

Now finally consider that there are some democratic parties in the country, Party Pa, and Pb, which are nearly 99%(if not 100%) members of religion A and they are fighting elections based on religious issues.

Q1: Should we allow such parties to come to power?

Q2: Should any religious activity, or agenda be limited of religious societies and religious leaders of a country? Does it make sense to allow political parties to include non-political issues like religion, in their manifesto.

Clearly If we see the connection the parties referred here are parties like VHP, RSS, AIMM, IUML etc. I have only included the parties that I know of. I haven’t done any extensive research in the area.

Now lets come to a clear question:

Should any party be allowed to include religion, region, language and community based agenda into their political agenda? If the answer is no, then should these be de-recognized by the govt,of india.

Of course these will make these parties rename themselves to a non-religious names, and continue their agenda.

Let me go ahead and further claim, in an idealistic scenario, no party should be allowed to use any religious, regional, and lingual agenda in their rallies at all. For any regional, religious or lingual issues, the govt. must have ministries that deal with the issues and may keep in touch with appropriate societies to listen to their demands and make changes in the law etc.


Now, why do I not like Narendra Modi?

First and foremost reason, he has strong backing by RSS, VHP and other proclaimed Religiously inclined leaders/politicians.

Secondly, In past there had been an incident of organized communal violence, where he has been charged.

His case was dropped by the Supreme court, claiming there was no sufficient evidence to convict. However there are accusations of SIT being partial to Modi. Further, either due to fear of losing his backing, or real intent, Narendra Modi, is yet to make apolegetic statement for the Gujrat Riots, some reports even claim that he has never visited any riot affected areas. If he is not communal himself, he is definitely not willing to take a stand on non-communal approach due to fear losing his backing.

Lastly: In the BJP manifesto for LS 2014, the Ram Mandir construction is mentioned, which again is a religious issue, and should not be endorsed by BJP being a national party.


Hope that I have explained my reasons on the subject.

Posted in Uncategorized | Leave a comment