More on Data Collections

  • Thread starter Thread starter Chibi
  • Start date Start date
C

Chibi

I have a thread that fills a collection with a large
number of objects. This happens often and fast.

I would like to find a way to check every once in a while
the capacity of this collection and if it's at X capacity,
to dump all the data in a temporary collection, so that
the data can be managed, while not interrupting the
initial thread that fills the object.

I know I will have to temporarily pause the initial thread
but how can I do this by miniminizing this pause? Any
suggestions?

Thanks!
 
Back
Top