View Single Post
Posts: 208 | Thanked: 220 times | Joined on Apr 2010
#74
Originally Posted by Trestry View Post
It works perfect! I have removed the small delay and I haven't got any issues so far with the OCCP widget. Autodisconnect ensures you aren't connected to internet when there is no need for and your widget makes sure I have internet when I need it. A perfect solution

Thank you very much
Glad to know you found it useful.However I must make sure you are aware of what possibly happens in absence of a delay.
Two different processes will attempt to read/write to the same file located on the disk at approx the same instant.How the OS handles these tasks (check priority etc) is beyond me.Simultaneous reads shouldn't be a problem,but simultaneous writes "may" cause file corruption.Again,I must confess that without knowledge of how underlying operations are performed, nothing can be said definitively.
Still , as the creator of the widget it was my duty to take necessary precautions,how you use it is upto you
PS: A delay of even 1 is significant in terms of cpu instruction speed.I was just being conservative
__________________
With Linux-powered N900..ANYTHING is possible