[Swift-user] throttling mapping threads
Mihael Hategan
hategan at mcs.anl.gov
Wed Apr 14 00:45:42 CDT 2010
So I looked at the problem in a bit more detail.
The part that starts the external process is run from the karajan worker
threads which are limited in number (somewhere between 1 and 8)*. So
that's the maximum number of concurrent invocations of an external
mapper. Do you actually see all 400 of them run at once?
Mihael
(*) Funny thing that for cooperative multi-tasking such non-cooperating
tasks as the example above were the thing that prompted the development
of preemptive multi-tasking. And yet here's an example where, due to
lazy coding, it turns out to be helpful.
On Tue, 2010-04-13 at 11:52 -0500, Allan Espinosa wrote:
> oh i was referring to my ext mapper script
> 1 swift script invoked once, inside of it is a foreach doing 400+ ext mappings.
>
> -Allan
>
> 2010/4/13 Ben Clifford <benc at hawaga.org.uk>:
> >> one for the whole script which is invoked a lot of times
> >
> >
> > you're invoking the same swiftscript a whole lot of times?
> >
> > --
> >
> >
> >
>
>
>
More information about the Swift-user
mailing list