Find Jobs
Hire Freelancers

c Queuing script with spawns

$30-5000 USD

Completed
Posted about 16 years ago

$30-5000 USD

Paid on delivery
I need a program written in C that will work in Linux. It needs to do several things. - It will do a SELECT on a mysql database for 3 fields. server, request, and ID. It will then send a URL request to http://$server/$request/ and wait for the $server to respond, when it responds, it needs to insert the "results" in another table, associated with the ID. That should be the simple part. Now, I need it to do queuing (spawning) and it should be able to do 10 spawns at any given time. So, it will grab 10 rows in this queue table, send 10 URLs to the servers, wait for responses, and once it receives 1 response, it will go ahead and do another one. It should NOT do anymore then 10 at any given time. It needs to keep track of all of them because each spawn will have a different ID, where it will need to update the other table with the results. All the configuration tags should be able to be put into the startup script. Example: ./queue -s 10 -t 20 -s would be how many spawns to do at any given time -t would be how long to wait when it runs out of things in the queue. So, for -t, let's say it continues to do a select, over and over, as spawns die off. Eventunally it's going to catch up to the table and not have anymore rows in the queue, so when there's no more rows in the table, it should wait 20 seconds (in my example) and then do another select to see if there's more in the queue. Thanks.
Project ID: 3833766

About the project

2 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$84.15 USD in 5 days
4.9 (75 reviews)
5.2
5.2
2 freelancers are bidding on average $148 USD for this job
User Avatar
See private message.
$212.50 USD in 5 days
5.0 (23 reviews)
6.6
6.6

About the client

Flag of UNITED STATES
Gilbert, United States
5.0
51
Member since Jun 18, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.