C# 클래스 Encog.Engine.Concurrency.Job.EngineConcurrency

This class abstracts thread pools, and potentially grids and other types of concurrency. It is used by other classes inside of Encog to allow tasks to be executed efficiently on multicore machines.
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
CreateTaskGroup ( ) : TaskGroup

Create a new task group.

EngineConcurrency ( ) : System

Construct a concurrency object.

ProcessTask ( IEngineTask task ) : void

Process the specified task. It will be processed either now, or queued to process on the thread pool. No group is assigned.

ProcessTask ( IEngineTask task, TaskGroup group ) : void

Process the specified task. It will be processed either now, or queued to process on the thread pool.

SetMaxThreadsToCoreCount ( ) : void

Set the max threads to the number of processors.

비공개 메소드들

메소드 설명
TaskFinished ( PoolItem poolItem ) : void

메소드 상세

CreateTaskGroup() 공개 메소드

Create a new task group.
public CreateTaskGroup ( ) : TaskGroup
리턴 TaskGroup

EngineConcurrency() 공개 메소드

Construct a concurrency object.
public EngineConcurrency ( ) : System
리턴 System

ProcessTask() 공개 메소드

Process the specified task. It will be processed either now, or queued to process on the thread pool. No group is assigned.
public ProcessTask ( IEngineTask task ) : void
task IEngineTask The task to process.
리턴 void

ProcessTask() 공개 메소드

Process the specified task. It will be processed either now, or queued to process on the thread pool.
public ProcessTask ( IEngineTask task, TaskGroup group ) : void
task IEngineTask The task to process.
group TaskGroup The group this task belongs to.
리턴 void

SetMaxThreadsToCoreCount() 공개 메소드

Set the max threads to the number of processors.
public SetMaxThreadsToCoreCount ( ) : void
리턴 void