public void RemoveThread(int id) { if (IsSystem) throw new InvalidOperationException (); threads.Remove (id); }