A
antonyliu2002
I do not quite understand the race condition.
As I posted a couple of days ago, I create a PDF on the fly in my web
application at regular intervals. Users will be able to download the
PDF file.
Suppose, at the time when my application is in the process of
generating the PDF file (which takes around 2.5 minutes), a user tries
to download it, will this be a problem?
I checked the Lock method of FileStream. The description of this
method says:
Prevents other processes from changing the FileStream while permitting
read access.
downloading of this file can happen at the same time without a
problem, right?
Thanks.
As I posted a couple of days ago, I create a PDF on the fly in my web
application at regular intervals. Users will be able to download the
PDF file.
Suppose, at the time when my application is in the process of
generating the PDF file (which takes around 2.5 minutes), a user tries
to download it, will this be a problem?
I checked the Lock method of FileStream. The description of this
method says:
Prevents other processes from changing the FileStream while permitting
read access.
locked. So, it looks like the creation of the PDF file and theFrom the description, read access is permitted even if the stream is
downloading of this file can happen at the same time without a
problem, right?
Thanks.