public void start(int totalTasks) {if (!isMainThread())throw new IllegalStateException();pm.start(totalTasks);}

public override void Start(int totalTasks){if (!IsMainThread()){throw new InvalidOperationException();}pm.Start(totalTasks);}
