Sunday, November 19, 2006

Human brain vs Computer

A lotta people have tried to model the computer as a human brain. I thought I should just try the reverse. Well I will just try to put down some analogies.


OS does process scheduling - human brain also does scheduling.. Those who have hajaar concentration are actually able to disable context switches. Perhaps it is possible to do this by disabling interrupts. But then disabling of interrupts is a privileged instruction and it should be possible only for the kernel to use it. So the kernel up their brains is insecure. Haha. The programs that run on their brains are somewhat like some hacker's code on a comp which could possibly disable interrupts and then use the complete processing power of the processor. But then, what the hacker program does is typically considered as useless work (possibly harmful), but the equivalent work on the human brain is considered as useful. Maybe we need to change our notion of usefulness to something more consistent across the platform....

Context switches in comps take approximately constant time. But in the human brain, a context switch to do something utterly 'useless' has switch time tending to zero if you have been doing something 'useful'. And if you are just whiling away time, the context switch time required to switch to a 'more useful' task seems to approach infinity. Strange.....

Just like the comp, the human brain also has memory hierarchies. At the most basic level, there is the RAM and hard disk on the comp. Similarly the brain also has short term and long term memory. We need to spend some time in recollecting old events etc, just like paging in pages from the hard disk to RAM. It would be interesting to find out what sort of replacement algorithm is followed in the brain..... Perhaps the brain also has other levels of hierarchy similar to the different levels of cache in the comp, we might just be unaware of them or rather not tried to model the brain with that many levels of memory hierarchy.

The Spinal cord is very much an equivalent of the FSB. It provides the link between the processor and all the peripheral organs (devices).

4 comments:

Mohan K.V said...

"in the human brain, a context switch to do something utterly 'useless' has switch time tending to zero"

:-)

Anonymous said...

Amiable brief and this mail helped me alot in my college assignement. Gratefulness you as your information.

Anonymous said...

very useful article. I would love to follow you on twitter.

Anonymous said...

hello people. I'm actually into shoes and I was looking for the sake of that particular make. The prices for the boots were about 210 bucks on every page. But finally I bring about this location selling them as a remedy for half price. I absolutely want those [url=http://www.shoesempire.com]gucci sneakers[/url]. I will probably buy those. what is your opinion?