public void ActivityStarted() { lock(this.countingLock) { this.numberOfActiveProcesses++; } this.overall.ActivityStarted(); }