スレッドとメモリー使用

最近メモリーをあんまりかからないはずなアルゴリズムを平行にした場合にメモリーが足りないようなエラーが発生
しました。Each thread performed O(200) large integer multiplications of O(1000) digits each. Each multiply would thus allocate about 4k to the heap, so there would be at most 800k per thread allocated over 200 threads without any garbage collection. If this were repeated over 100 test cases, the memory would be O(80mb).