Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Integrating Xgrid into Cocoa Applications, Part 2
Subject:   xgrid command hanging?
Date:   2004-05-26 13:37:36
From:   jamesreynolds
Have you had any threads hang that execute /usr/bin/xgrid? How would your app handle it if a thread hung?


Also, if I had 10000 images, your app would create 10000 threads?

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • xgrid command hanging?
    2004-05-26 22:36:28  drewmccormack [View]

    It wouldn't handle a hanging thread. It would just wait forever I suspect. You could add a timeout for this, I guess.

    If you were going to process so many images, you would probably want to split things up into blocks, maybe 50 images at a time. So you simply add a second outer loop over blocks.

    The app is only a demo, and can be improved in many ways. One thing you would want to do if you ever released it, is ensure that it would process images even without xgrid running, locally. Another is that you would want to be able to locate controllers with rendezvous, query them to find out which has the most resources available, and submit to it.

    Drew