English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

for (i=0;i {
display(array_func[array[i]]); //array_func is function that returns value from a database.
}

How do i change the above loop to run in parallel? I am using java and i am not interested in the order of display. Is threads the only way of doing this ?

2007-12-19 18:29:23 · 2 answers · asked by glow_daisy 1 in Computers & Internet Programming & Design

2 answers

The Auto-Parallelizing Option (APO)
The Auto-Parallelizing Option is a compiler extension controlled with options in the command line that invokes the MIPSpro auto-parallelizing compilers. It is an optional software product for programs written for the N32 and N64 application binary interfaces (see the ABI(5) man page for information on the N32 and N64 ABIs). Although their runtime performance suffers slightly on single-processor systems, parallelized programs can be created and debugged with the MIPSpro auto-parallelizing compilers on any SGI system that uses a MIPS processor.

not sure if this is the answer you want???

2007-12-19 18:38:02 · answer #1 · answered by Anonymous · 0 0

Is performance the reason you want to run this in parallel? I would think it will display slower if you assign several threads to split up the work of display. I don't know if this is possibility for your application, but you might be able to get some performance gain by intelligently determiing what does not need to be redrawn, and skipping the display of those elements.

2007-12-20 02:50:33 · answer #2 · answered by roderick_young 7 · 0 0

fedest.com, questions and answers