473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

need help on files

AVL
Hi,

I need some info on text and xml files......

How many users can simultaneously read a text or xml file...

I've a web appliaction which needs to access a text file and a xml file..

The current users of the system are around 1000 people...

Can 500 amongst them read those files simultaneously??
Does it affect the performance of teh applcation in any ways.....

Help required on the above query...
Mar 15 '06 #1
3 1200
Hi,

AVL wrote:
Hi,

I need some info on text and xml files......

How many users can simultaneously read a text or xml file...

I've a web appliaction which needs to access a text file and a xml file..

The current users of the system are around 1000 people...

Can 500 amongst them read those files simultaneously??
Does it affect the performance of teh applcation in any ways.....

Help required on the above query...


Not simultanously, because when you read a file, it is locked by the
operating system until you call the Close method on the stream.

The correct way to handle this is to lock the file using the "lock"
statement in C#, so that only one user at the time can open the file,
read it in the program's memory, and then release the file. Once the
file is in the program's memory, the next user can access it.

For help about real time programming, check the "lock" statement in MSDN.

HTH,
Laurent
Mar 15 '06 #2
Also check out the unlock statement in MSDN
Mar 15 '06 #3
It depends on somewhat by what you mean when you say "read".
For example, millions of users can be reading the contents of the same text
file on their screen simultaneously without any problems because it only
takes a fraction of a second to send it to them and it takes them a long
time to read it on their screen.

If you're talking about programatically reading files simultaneously then
that number drops significantly but it still stays pretty high as long as no
process is trying to write to the file. If many processes are both trying
to read and write to the file then things start to get messy...

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"AVL" <AV*@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
Hi,

I need some info on text and xml files......

How many users can simultaneously read a text or xml file...

I've a web appliaction which needs to access a text file and a xml file..

The current users of the system are around 1000 people...

Can 500 amongst them read those files simultaneously??
Does it affect the performance of teh applcation in any ways.....

Help required on the above query...

Mar 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: news | last post by:
I have a new situation I'm facing and could use a suggestion or two, as I don't seem to be able to think in the abstract very well. We have a local server which holds all of our image files. We...
18
by: Chad A. Beckner | last post by:
I am (and have been trying!) to find a good way to do the following few things: 1. When a user requests a .aspx/.htm/.html file, the file needs to be automatically integrated into a page...
1
by: Nut Cracker | last post by:
Hello, If anyone can point me to a good ASP based Control Panel for IIS5, I would be much obliged. I hacked together an ASP site for file uploads and sharing. Its very simple, and basically...
6
by: Wayne Wengert | last post by:
I am using VSNET 2003 to build an ASP.NET/VB set of pages. There are currently about a dozen aspx pages. When I make even a minor change to one page I currently rebuild the solution, copy the...
5
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
7
by: Enigma Curry | last post by:
I need to store a large number of files in an archive. From Python, I need to be able to create an archive, put files into it, modify files that are already in it, and delete files already in it. ...
46
by: Bruce W. Darby | last post by:
This will be my very first VB.Net application and it's pretty simple. But I've got a snag in my syntax somewhere. Was hoping that someone could point me in the right direction. The history: My...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
6
by: MGM | last post by:
Alright, so here's my issue. I have a bunch of .dbf files, about 40 or so by summer's end, I'd say. These dbf files somewhat differ from each other as far as number of columns and data is...
9
by: bhumikas | last post by:
Hi all, I need a help in perl script.The basic idea is,it must have command line arguments for the user flexibility.the files are in the format as shown below. MainFolder Directory ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.