private XThreadProvider threadProvider;
public XVirtualMachine(XClassLoader standartClassLoader, int memSize){
classProvider = createClassProvider();
objectProvider = new XObjectProvider(this, memSize);
nativeProvider = new XNativeProvider(this);
threadProvider = new XThreadProvider(this);
classProvider.addClassLoader(standartClassLoader);
}