Find Jobs
Hire Freelancers

c Queuing script with spawns

$30-5000 USD

Selesai
Dibuat sekitar 16 tahun yang lalu

$30-5000 USD

Dibayar ketika dikirim
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.
ID Proyek: 3833766

Tentang proyek

2 proposal
Proyek remot
Aktif 16 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
See private message.
$84,15 USD dalam 5 hari
4,9 (75 ulasan)
5,2
5,2
2 freelancer menawar dengan rata-rata $148 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$212,50 USD dalam 5 hari
5,0 (23 ulasan)
6,6
6,6

Tentang klien

Bendera UNITED STATES
Gilbert, United States
5,0
51
Anggota sejak Jun 18, 2006

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.