![]() |
|
|
#56 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
976710 Posts |
Quote:
Your (flashjh's) solution is relatively reasonable, but it still has a race condition (moving the file back could overwrite new results written by mfakt*). A better solution would be to have the spider place the file somewhere where it knows about it, and will deal with it the next time it runs. Bringing this spider up to 0.3 has been on my todo list for quite some time; I really must bump up its priority.... Last fiddled with by chalsall on 2012-04-26 at 13:24 Reason: Had a hanging open bracket... |
|
|
|
|
|
|
#57 | |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
|
|
|
|
|
|
|
#58 | |
|
Oct 2011
7·97 Posts |
Quote:
|
|
|
|
|
|
|
#59 | |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
|
|
|
|
|
|
|
#60 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
230478 Posts |
Quote:
![]() Depending on the environment, it is certainly possible for a new process to be started running the same code which you might not expect to be running concurrently. It's a very difficult problem, which manifests surprisingly often. This probably explains why "Hello, IT. Have you tried turning it off and on again?" (quoting Roy Trenneman) is so commonly heard....
|
|
|
|
|
|
|
#61 | |
|
Oct 2011
7×97 Posts |
Quote:
|
|
|
|
|
|
|
#62 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
Quote:
Under *NIX, if you list a program in the CRONTAB it will do it (again) when you've told it to do it. Damn computers!!! They do exactly what you've told them to do....
|
|
|
|
|
|
|
#63 |
|
Oct 2011
7×97 Posts |
It is set up "If the task is already running, then: Do not start a new instance."
|
|
|
|
|
|
#64 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
Quote:
But what does that actually mean? What if the task is "zombied"? Is it still "running"? Or, let's say, you have a run-away task. Happens often. Should the operating system let it do it's thing? What if the task was "killed" before it had a chance to clean up after itself (read: left files it owned in an undefined state). It would therefore not be running, but may have left garbage behind. I say again... Can be difficult.... Last fiddled with by chalsall on 2012-04-26 at 16:46 Reason: Added third to last paragraph. |
|
|
|
|
|
|
#65 | |
|
Oct 2011
7·97 Posts |
Quote:
|
|
|
|
|
|
|
#66 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
So... the reason I did my append hack was so that I could submit results to Mersenne-aries after PrimeNet, but it just now occurred to me, why not automate that too? The form:
Code:
<form method="post" enctype="multipart/form-data" action="/index.php"> [snip] <br>User Name: <input type="text" size="15" name="anonymous_username" value="Dubslow"> and/or computer ID: <input type="text" size="15" name="anonymous_compname" value="GTX 460"> <textarea name="results" style="width: 800px; height: 400px;" wrap="off"></textarea><br> or, upload new results as a file (max 96MB):<br><input type="file" name="results_file" /> <br><input class="submit" type="submit" value="Submit"><br> </form> |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GPU to 72 spider poaching exponents? | ixfd64 | GPU to 72 | 2 | 2014-07-27 20:38 |
| It Seems The Great Spider ... | Dubslow | Forum Feedback | 13 | 2012-06-01 13:39 |
| Automatic temperature control | TObject | Software | 13 | 2012-04-27 19:33 |
| Went from 8 workers to 4 workers on v26.6 upgrade | dmoran | Software | 13 | 2011-05-23 12:36 |
| Manual submission of automatic assignment result | tichy | PrimeNet | 4 | 2010-12-17 09:57 |