MustangWorks.com - The Ford Mustang Power Source!

Go Back   MustangWorks.com : Ford Forums > Website Community > Site Talk
Register FAQ Members List Calendar

Notices


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 09-15-2000, 07:04 PM   #17
jimberg
Registered Member
 
jimberg's Avatar
 
Join Date: Oct 1998
Location: Rogers, MN
Posts: 2,089
Post

I don't think I even mentioned Windows stuff in my last message. Most of my major multithreaded programming was with kernels and schedulers that I wrote. When I did programs for IIS that were fairly similar to User Rides and pounded it with 120 simultaneous users, the highest thread count I ever got was 7 threads. If everything positive about Linux that I have read is true, you should be able to get your max count to at most half of that.

Regardless of how efficient the scheduler is in the OS, however, having tasks vying for resources by having them wait for an arbitrary, predetermined period of time is still a major problem because of the issue creating a race condition.

I think you pretty much have what I am saying, except for the part about waiting only if queue files exist. The process will be extended a little, but would still be continuous. The program will never wait.

As far as getting rid of the locking file, I went to PERL.ORG to see if I could find some info on file locking. Does the FLOCK <file handle>, 2 not work with your implementation of PERL? That would give you exclusive access to write to the file without needing to create a lock file. In the FAQ, their example was a page hit counter, so I'm pretty sure that is what I was looking for. If the FLOCK fails, run the ELSE code in the above pseudo code.

If you use SQL Server 7, yes, it will be much easier.
jimberg is offline  
 



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User's Rides... Think about it.... Hammer Modular Madness 2 07-23-2002 06:20 PM
Attn: Dan. "Users Rides" section only shows 2 users. Fox Body Blue Oval Lounge 2 02-11-2001 01:11 AM


All times are GMT -5. The time now is 12:30 AM.


SEARCH