.NET Standard parallel extensions extras

时间:2023-12-10 11:26:29
【文件属性】:

文件名称:.NET Standard parallel extensions extras

文件大小:123KB

文件格式:ZIP

更新时间:2023-12-10 11:26:29

c#

提供了大量和任务相关的示例代码,其中包括多个任务调度器源码。 In 2010, Stephen Toub authored a blog series called "A Tour of ParallelExtensionsExtras"". At the time, there was a companion library of extensions that was based on .NET Framework 4. The sample source code has been ported from the original to .NET Standard 2.1.


【文件预览】:
README.md
TaskSchedulers
----ThreadPerTaskkScheduler.cs(1KB)
----ReprioritizableTaskScheduler.cs(4KB)
----StaTaskScheduler.cs(4KB)
----SynchronizationContextTaskScheduler.cs(3KB)
----CurrentThreadTaskScheduler.cs(2KB)
----QueuedTaskScheduler.cs(29KB)
----WorkStealingTaskScheduler.cs(19KB)
----RoundRobinTaskScheduler.cs(5KB)
----ConcurrentExclusiveInterleave.cs(15KB)
----LimitedConcurrencyLevelTaskScheduler.cs(7KB)
----IOCompletionPortTaskScheduler.cs(11KB)
----IOTaskScheduler.cs(4KB)
----OrderedTaskScheduler.cs(656B)
ParallelAlgorithms
----ParallelAlgorithms_SpeculativeInvoke.cs(2KB)
----ParallelAlgorithms_Map.cs(2KB)
----ParallelAlgorithms_SpeculativeFor.cs(3KB)
----ParallelAlgorithms_Reduce.cs(5KB)
----ParallelAlgorithms_For.cs(3KB)
----ParallelAlgorithms_Scan.cs(11KB)
----ParallelAlgorithms_WhileNotEmpty.cs(3KB)
----ParallelAlgorithms_Sort.cs(11KB)
----ParallelAlgorithms_While.cs(2KB)
----ParallelAlgorithms_SpeculativeForEach.cs(3KB)
----ParallelAlgorithms_Filter.cs(2KB)
----ParallelAlgorithms_Wavefront.cs(6KB)
----ParallelAlgorithms_Common.cs(613B)
----ParallelAlgorithms_ForRange.cs(13KB)
Extensions
----AggregateExceptionExtensions.cs(3KB)
----TaskCompletionSourceExtensions.cs(3KB)
----ParallelOptionsExtensions.cs(856B)
----TaskSchedulerExtensions.cs(2KB)
----DelegateBasedObserver.cs(984B)
----LazyExtensions.cs(2KB)
----PlinqExtensions.cs(8KB)
----TaskExtrasExtensions.cs(24KB)
----DelegateExtensions.cs(3KB)
----LinqToTasks.cs(12KB)
----TaskFactoryExtensions()
--------TaskFactoryExtensions_TrackedSequence.cs(3KB)
--------TaskFactoryExtensions_Delayed.cs(23KB)
--------TaskFactoryExtensions_ContinueWhenAllAny.cs(3KB)
--------TaskFactoryExtensions_Create.cs(8KB)
--------TaskFactoryExtensions_Iterate.cs(12KB)
--------TaskFactoryExtensions_From.cs(6KB)
--------TaskFactoryExtensions_Common.cs(3KB)
--------TaskFactoryExtensions_FromAsync.cs(1KB)
----IProducerConsumerCollectionExtensions.cs(5KB)
----APM()
--------StreamExtensions.cs(10KB)
--------WebRequestExtensions.cs(2KB)
--------FileAsync.cs(6KB)
----BlockingCollectionExtensions.cs(10KB)
----CancellationTokenExtensions.cs(1KB)
----CompletedTask.cs(1KB)
----EAP()
--------WebClientExtensions.cs(17KB)
--------SmtpClientExtensions.cs(4KB)
--------EAPCommon.cs(1KB)
--------PingExtensions.cs(11KB)
----ParallelLinqOptions.cs(2KB)
Drawing
----FastBitmap.cs(3KB)
Utils
----SortedTopN.cs(2KB)
ParallelExtensionsExtras.csproj
CoordinationDataStructures
----ActionCountdownEvent.cs(3KB)
----SpinLockClass.cs(2KB)
----ReductionVariable.cs(4KB)
----AbstractStreamBase.cs(4KB)
----AsyncCoordination()
--------AsyncSemaphore.cs(6KB)
--------AsyncProducerConsumerCollection.cs(3KB)
--------AsyncBarrier.cs(2KB)
--------AsyncCache.cs(7KB)
--------AsyncCall.cs(12KB)
--------AsyncReaderWriter.cs(11KB)
----ObjectPool.cs(3KB)
----ObservableConcurrentCollection.cs(3KB)
----ObservableConcurrentDictionary.cs(7KB)
----Pipeline.cs(10KB)
----ProducerConsumerCollectionBase.cs(5KB)
----TransferStream.cs(3KB)
----ThreadSafeRandom.cs(3KB)
----ConcurrentPriorityQueue.cs(15KB)
----SerialTaskQueue.cs(3KB)
Partitioners
----ChunkPartitioner.cs(13KB)
----SingleItemPartitioner.cs(9KB)

网友评论