Hi,
I too am interested in finding out about manager/GThread recovery. We
have a fairly unreliable activex that would be used in any production
app and one of our main concerns is being able to detect this, and
restart execution. It is vital that the manager have a good idea of
what threads are alive and those that have borked. Are there any plans
to start on this sort of thing soon?
Cheers
Antoine

On 07/02/06, Luis Cota <[EMAIL PROTECTED]> wrote:
> Is there any indication of what types of threads cause the Manager to
> lose track of a thread?  Could this be machine dependant?  All the
> machines I have available have similar configurations (some with Quad
> processors), but all machine configurations have had an executor and all
> have had this problem at some point.
>
> I've also tried the Manager app on different machines which did not
> alleviate the problem.  What kind of heuristic can I use (reliably) to
> determine which threads should be killed and restarted?  When I attempt
> to cycle through the threads of a GApplication object that has been
> started, a runtime exception is thrown.  Is there another way that I can
> check for this error?  In addition, supposing I could cycle through
> these threads, I don't see a clear way of accessing the Time_Started /
> Time_Finished properties of a GThread through the API.
>
>
> The code I have to cycle through app.Threads is below. Variable wtf is
> set to false because of the runtime error mentioned above.
>
> bool wtf = false;
> while(AppRunning)
> {
>         Thread.Sleep(500);
>         if(wtf)
>         {
>                 foreach (GThread g in app.Threads)
>                 {
>                         if (g.State ==
> Alchemi.Core.Owner.ThreadState.Scheduled)
>                         {
>                                 g.Start();
>                         }
>                 }
>         }
> }
>


--
This is where I should put some witty comment.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
alchemi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alchemi-users

Reply via email to