24 references to ProcessorCount
mscorlib (4)
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
1008if (i < 3 && Environment.ProcessorCount > 1)
system\threading\SpinWait.cs (1)
310s_processorCount = procCount = Environment.ProcessorCount;
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
71private static Int32 DefaultMaxConcurrencyLevel { get { return Environment.ProcessorCount; } }
system\threading\threadpool.cs (1)
55public static int processorCount = Environment.ProcessorCount;
System (1)
net\System\Net\_SSPIWrapper.cs (1)
91return new ConcurrentDictionary<string, SafeFreeCredentials>(Environment.ProcessorCount, s_DefaultCredentialsHandleCacheSize);
System.Core (2)
System\Linq\Parallel\Scheduling\Scheduling.cs (1)
41internal static int DefaultDegreeOfParallelism = Math.Min(Environment.ProcessorCount, MAX_SUPPORTED_DOP);
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (1)
59private static readonly int ProcessorCount = Environment.ProcessorCount;
System.Data (6)
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
35static Task<DbConnectionInternal>[] s_pendingOpenNonPooled = new Task<DbConnectionInternal>[Environment.ProcessorCount];
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (1)
495_pooledDbAuthenticationContexts = new ConcurrentDictionary<DbConnectionPoolAuthenticationContextKey, DbConnectionPoolAuthenticationContext>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/,
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (1)
23new ConcurrentDictionary<string, SqlAeadAes256CbcHmac256Algorithm>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/, capacity: 2);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (1)
25new ConcurrentDictionary<string, SqlAes256CbcAlgorithm>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/, capacity: 2);
fx\src\data\System\Data\SqlClient\SqlClientEncryptionAlgorithmFactoryList.cs (1)
23_encryptionAlgoFactoryList = new ConcurrentDictionary<string, SqlClientEncryptionAlgorithmFactory>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/, capacity: 2);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
88= new ConcurrentDictionary<string, IList<string>>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/,
System.Runtime.Caching (1)
System\Caching\MemoryCache.cs (1)
323_storeCount = Environment.ProcessorCount;
System.ServiceModel (2)
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
345this.validateUriCallThrottle = new ThreadNeutralSemaphore(MaxPendingValidateUriRouteCallsPerProcessor * Environment.ProcessorCount, () => { return null; });
System\ServiceModel\OSEnvironmentHelper.cs (1)
82return Environment.ProcessorCount;
System.ServiceModel.Channels (3)
System\ServiceModel\Channels\UdpChannelFactory.cs (1)
358UdpConstants.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpChannelListener.cs (1)
372UdpConstants.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpConstants.cs (1)
41public static readonly long MaxPendingMessagesTotalSize = 1024 * 1024 * Environment.ProcessorCount; // 512 * 2K messages per processor
System.ServiceModel.Internals (1)
System\Runtime\SynchronizedPool.cs (1)
342return Environment.ProcessorCount;
System.Web (1)
Compilation\CompilationUtil.cs (1)
660maxConcurrentCompilations = Environment.ProcessorCount;
System.Workflow.Runtime (3)
Hosting\DefaultWorkflowSchedulerService.cs (2)
38return Environment.ProcessorCount == 1 40: (int)(DEFAULT_MAX_SIMULTANEOUS_WORKFLOWS * Environment.ProcessorCount * .8);
WorkflowRuntime.cs (1)
185workflowExecutors = new FanOutOnKeyDictionary<Guid, WorkflowExecutor>((Environment.ProcessorCount * 4) - 1);