The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Will that do?

Posted by Hiran on December 01, 2001 at 1:32 PM

> Hiran, your Image class can implement Runnable to achieve what u want to do with the
>


> public void run()
> {
> for (int i=0; i<4; i++)
> {
> for (int j=0; j<13; j++)
> {
> initImages(i, j);
> }
> }
> }
>

Chin, will that start the loading of each image as a seperate thread? Won't that just start a new thread that'll try to load all the images? I want to start 52 new threads - one for each image.
Hiran



Replies:
  • thread Chin Loong December 01, 2001 at 2:37 PM (1)
    • oopsie Chin Loong December 01, 2001 at 2:40 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us