On Thu, 24 Apr 2008, Tim Jenness wrote:
> We can't even get AST modified easily so that it can be used in a threading
> environment (mutexing any ast call will defeat the point).
mutexing all calls is how it's done in JNIAST. It's OK in the limit
that each AST call takes a small amount of time; not so good for use
of, e.g., large resampling operations. Hasn't caused practical problems
as far as I'm aware in SPLAT yet, but as you suggest if you're using
multi-threading for performance gains of CPU-heavy code it would be
a different story.
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|