Google Answers Logo
View Question
 
Q: Multiple filedescriptor to the same file within the same process ( No Answer,   0 Comments )
Question  
Subject: Multiple filedescriptor to the same file within the same process
Category: Computers > Operating Systems
Asked by: sv12-ga
List Price: $2.00
Posted: 14 Feb 2005 19:51 PST
Expires: 16 Mar 2005 19:51 PST
Question ID: 474691
How does windows handle multiple file descriptor to the same file on
hard disk owned by say two different threads within a process ? Here
is the scenario: a)i have main thread which opens a file (from CIFS
mounted file system) and memory maps it for reading. b)Second thread
opens the
same file to read the contents of the file(no memory map). Both of
these activities are done simultaneously and they could be reading
data at different offsets at any given pt of time. I see that with a
test program to test this scenario, (a) done alone has good
performance (i mean the file was mmaped and the data was read faster)
than when it was done in parallel
with (b). Is this a well known problem? Is there a way to address this
problem and make the simultaneous access faster ?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy