Multiple Threads - I/O in Same File
James Matthews
nytrokiss at gmail.com
Mon Nov 21 22:13:57 EST 2011
You may have some issues with disk reading as the drive heads move in
different ways
On Mon, Nov 21, 2011 at 8:15 AM, <Nikunj.Badjatya at emc.com> wrote:
> Hi All,****
>
> ** **
>
> Just a question in general. Is it possible that we have opened one file
> in r+ mode ( file1.txt ). ****
>
> We have 2 threads, ****
>
> **· **Thread1 will continuously ‘only read’ the file in a loop. **
> **
>
> **· **Thread2 will only update the data in the file ( say a
> number < 100 ). ****
>
> Now thread2 has called other script ( written in say Perl/Powershell using
> subprocess.call() ) and those scripts are inturn updating ( only writing )
> into that file by their own file i/o mechanism.****
>
> ** **
>
> Is it possible by any chance? One file being shared between different
> processes one is only updating and other is only reading ..? Will this work
> in practical and what can be the complications ?****
>
> ** **
>
> ** **
>
> Thanks****
>
> Nikunj****
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
http://www.goldwatches.com
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111121/de8df01b/attachment-0001.html>
More information about the Python-list
mailing list