You may have some issues with disk reading as the drive heads move in different ways<br><br><div class="gmail_quote">On Mon, Nov 21, 2011 at 8:15 AM, <span dir="ltr"><<a href="mailto:Nikunj.Badjatya@emc.com">Nikunj.Badjatya@emc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hi All,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p>Just a question in general. Is it possible that we have opened one file in r+ mode ( file1.txt ). <u></u><u></u></p><p>We have 2 threads, <u></u><u></u></p><p style="margin-left:.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u>Thread1 will continuously ‘only read’ the file in a loop. <u></u><u></u></p>
<p style="margin-left:.5in"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u>Thread2 will only update the data in the file ( say a number < 100 ). <u></u><u></u></p>
<p>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.<u></u><u></u></p><p>
<u></u> <u></u></p><p>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 ?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks<u></u><u></u></p><p class="MsoNormal">Nikunj<u></u><u></u></p></div></div><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.goldwatches.com">http://www.goldwatches.com</a><br><br>--<br><br><br><br><br><br>