java -> System.gc(); Does this call opens a new Thread or not?

Posted by ogzylz on Stack Overflow See other posts from Stack Overflow or by ogzylz
Published on 2010-04-19T12:19:10Z Indexed on 2010/04/19 12:23 UTC
Read the original article Hit count: 166

For example I such a code

... get some memory and lose all the pointers to that memory so that System.gc(); can collect it.

call System.gc();

do some other tasks;


Here does the "do some other tasks;" and "System.gc();" works in paralel or does the "do some other tasks;" waits for "System.gc();" to be executed

Thank you

© Stack Overflow or respective owner

Related posts about java

Related posts about garbage-collection