public void AddThread(int id) { if (IsSystem) throw new InvalidOperationException (); if (!threads.Contains (id)) threads.Add (id, true); }