Is multithreaded class loading possible?

Is it possible to implement a multi-threaded class loader in Java? In a meta-driven structure, I need to load several hundred classes in advance, that is not as lazy as the system class loader. To speed this up, I'd like to better use current multi-core processors. Before I plunged into this, I would be interested if someone already has some experience on this issue or, perhaps, it is completely clear that perhaps this defineClass()is a bottleneck.

Thanks Andre

+5
source share
2 answers

, . JDK7 .

, , , , --.

+6

, , , . Executor Callables, jvisualvm.

0

All Articles