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