|
-
Sep 23rd, 2005, 01:09 PM
#1
Thread Starter
Dazed Member
Sizing an Array parameter.
Im using enumerate(Thread[] t) to get a count of all the active Threads that I have running within my program. Problem is that even though I know how many threads that I spawn within my prog I am sure that there are times when the amount of active Threads is not know. So how does one know how large to make the Array? ThreadGroup has activeCount() which returns all active threads but this requires an instance of a ThreadGroup.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|