Posted 02 August 2012 - 06:10 PM
Hi guys i have the following code:
In this situation attempts = 10000.
WHen i run it just like that my computer just reboots without finishing the program.
If i add sleep(.1) it runs fine, but it take 16 minutes longer than it should (because .1 *10000 = 1000 seconds = 16 minutes)
Is there anything i can do to avoid the sleep and cut down the run time?
Does anyone know why the program would be rebooting the computer?
Thanks!
for i = 1,attempts do
network:backwardPropagate({0,0},{0})
network:backwardPropagate({1,0},{1})
network:backwardPropagate({0,1},{1})
network:backwardPropagate({1,1},{0})
end
In this situation attempts = 10000.
WHen i run it just like that my computer just reboots without finishing the program.
If i add sleep(.1) it runs fine, but it take 16 minutes longer than it should (because .1 *10000 = 1000 seconds = 16 minutes)
Is there anything i can do to avoid the sleep and cut down the run time?
Does anyone know why the program would be rebooting the computer?
Thanks!