T
Tony Targonski
In my Rails application, I have a function perform some background
calculations inside of a thread.
The problem is that the said thread gets no computation time unless
something else runs in parallel. If the user continuously refreshes a
page (any controller page), the function zooms through the tasks. But if
one was to just initiate the script and leave for a coffee break --
nothing gets done.
Threads are attention whores, how do I fix or work around that?
Thank you,
--Tony
calculations inside of a thread.
The problem is that the said thread gets no computation time unless
something else runs in parallel. If the user continuously refreshes a
page (any controller page), the function zooms through the tasks. But if
one was to just initiate the script and leave for a coffee break --
nothing gets done.
Threads are attention whores, how do I fix or work around that?
Thank you,
--Tony