SunQuest
           Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old February 4th, 2001, 08:30 AM
TrevH TrevH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 0 TrevH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

An example:
A Perl script opens and reads the contents of a text file.
Say 10 people are running this script at any one time.
Script runs on our hosting co.'s FreeBSD web server.

Would each of these people have to wait in a queue for the file to opened and closed by the previous user or can they all open the file at the same time?

Cheers for any advice!
Trev



Reply With Quote
  #2  
Old February 4th, 2001, 09:17 AM
mickalo's Avatar
mickalo mickalo is offline
Ole` Timer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: N.W. Iowa
Posts: 469 mickalo User rank is Private First Class (20 - 50 Reputation Level)mickalo User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 19 sec
Reputation Power: 8
Send a message via AIM to mickalo Send a message via MSN to mickalo
Thumbs up

It all depends on the server resources and the actual size of the content of the file. But I'm sure more then 10 people could access and read a text file at any one given instances. It's when the file is written too, that you want to control access to the file by file locking.

Mickalo
__________________

Thunder Rain Internet Publishing

Custom Programming & Database development
Providing Personal/Business
Internet Solutions that work!

Reply With Quote
  #3  
Old February 4th, 2001, 02:28 PM
TrevH TrevH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 0 TrevH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

Quote:
Originally posted by mickalo
It all depends on the server resources and the actual size of the content of the file. But I'm sure more then 10 people could access and read a text file at any one given instances.


Thanks Mickalo!

I think eventually it will get its own dedicated server and SQL if it takes off, but as long as it can deal with a few people at once to start with that should be just what I'm looking for.

Trev

Reply With Quote
  #4  
Old February 4th, 2001, 02:38 PM
mickalo's Avatar
mickalo mickalo is offline
Ole` Timer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: N.W. Iowa
Posts: 469 mickalo User rank is Private First Class (20 - 50 Reputation Level)mickalo User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 19 sec
Reputation Power: 8
Send a message via AIM to mickalo Send a message via MSN to mickalo
Thumbs up

One thing I didn't mention is there is a setting that controls how many parent/child processes can be spawned at one given time by a script(thru the server config files under Apache). But this usually doesn't come into pay unless the file is being access really heavily!!

If you look for a good dedicated server, you may want to check out Adgrafix Dedicated Server NT and UNIX packages!
URL: Dedicated Servers

Just had to get that plug in there, don't ya know

Cheers,

Mickalo

Reply With Quote
  #5  
Old February 12th, 2001, 03:26 PM
TrevH TrevH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 0 TrevH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by mickalo
One thing I didn't mention is there is a setting that controls how many parent/child processes can be spawned at one given time by a script(thru the server config files under Apache). But this usually doesn't come into pay unless the file is being access really heavily!!


I'll let Claranet worry about those for now alhough hopefully we'll be able to move to SQL before it hits those rates. I'm trying to write it to be as quick and CPU friendly as possible, but I've not been learning programming all that long...

Quote:
Just had to get that plug in there, don't ya know


Ye' no problem, how about a couple of those $1400 Spark10 thingies - I assume at that price they are a little quicker than my AMD K6/2 400? ;-)

I'll keep you in mind...

Cheers
Trev
(who will be asking *a lot* of questions here in the near future!)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > How many can read text file at once?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway