Sunday, April 29, 2012

Implimenting File Sever In Linux


                                          File server can be considered as administrative  storage of shared  resources in the network so that other terminals in the network can access to those resources.

              Here I am implimenting a multithreaded concurrent server.Multithreaded means seperate thread for each client request. One main thread (listen) will continiously run till there are client requests for the files.We have to create seperate thread to service each client request.Concurrent means that server can handle many client requests simultaneously.We also have to impliment mutual exclusion for shared resources.It means that simultaneous reading is possible but  reading while writing or writing while reading is not possible.
                  First we must run server code and then client code. After sucessfully conneted with client , server will display list of available files , will ask whether client want to read or write file  ? In both cases  server will send requested file to client and apply read/write lock on that file so that consistency must  be maintained.In my code ,server is opening file in read mode , reading it and then send it to client.At client end if client want to read the file , display  that file on terminal. If client is writing into file then that change must be reflected into file at server side.For next read request that updated file must be use.

            The main idea is to create socket connection first then we have to handle file read or write request .The functions that i have used for socket creation are  socket(),bind(),connect(),accept() etc and write() and read() for file manipulation.

Thursday, March 22, 2012

Life Extension

Actually it is study of slowing down or reverses the changes that took place in human body over period of time.Basic idea is to extend average life or maximum life span of humans. It involve rejunation which is process of replacement of damaged tissues with new ones. Raymond Kurzweil, a futurist and transhumanist, stated in his book 'The Singularity Is Near' that he believes that advanced medical nanorobotics could completely remedy the effects of aging by 2030. Here are some techniques used for life extension

• Nanotechnology
• Cloning and body part replacement
• Cycronics
• Genetic modification
• Fooling genes

The technology is getting much more advanced day by day. Recent scientific successes in rejuvenation and extending a lifespan of model animals and discovery of variety of species give hope to cancel ageing for younger humans, reverse ageing or at least significantly delay it.Just looking at advanced technology of medical sciences ,nanotechnology,neuroscience we may predict its sucess in future.Normally almost everybody wants to live longer as has fear to die. Approzimate human life span is about 100 years.If life extension is sucessful in future, can you guess what will be human’s life span? Our body tissues gets damaged over time but even after sucessful life extension dont you think it will have adversed effect on our boby? Will our body react in same way as it earlier? I think it will bring much more complications to human life.

God has given wonderful life to us and let it be simple.  Feel it Dream it  Live it .
Lets think about it...!

Tuesday, March 20, 2012

Damn The 100th


Iconic Indian batsman Sachin Tendulkar scripted history by becoming the first cricketer in the world to score 100 international centuries.”
                      This time celebrations was muted, but it has been overshadowed by a sense of relief. This would be the first time that a Sachin had scored century and everybody is feeling relief rather than celebration (may he also).Looking into last 2 years,2010 was brilliant year for him as he scored total 8 centuries.He scored his 99th century on 11th march against South Africa in World Cup 2011.After that match he got 4 opportunities for golden ton in World Cup 2011 but he failed on every occasion. Since then it had been an long wait for the master blaster, whose every inning was watched with anticipation and excitement. He came so close so many times, in Oval against England , in Mumbai against Westindies or in the first two Tests in Australia.He was out of form during India's Test and ODI whitewash at the hands of England last year and though he recovered quite a bit in the later series, the hundred was still not coming.

                            Tendulkar seemed to be in good touch during the Tests but his form waned after he missed the 100th hundred despite coming close a few time.Following this, he made himself available for the ODI tri-series against Sri Lanka and Australia but there too, the milestone proved elusive.A long wait of 33 innings has frusted all his fans,But the wait finally ended in familiar sub-continental environment.When asked him about his feeling after 100thton, he said he felt 50 kilos lighter after the century, he was obviously referring to the pressures of expectations that he had to carry for over a year. None of us can feel that pressure as those who haven't gone through it won't know how difficult that was.This inning adds one more record of scoring century against all ODI playing teams.
                          
                            This golden moment could have been better, against quality opponent and on a wicket that didn’t really have the typical subcontinent feel about it. It could have happened in Australia, or in England, or during the World Cup. But then, this is not the time to brood on what could have been. This is the time to congratulate,celebrate ,chear ,enjoy and hoping that best is yet to come....