Thread (Concept)

From Grooper Wiki
(Redirected from Thread)

A Thread is the smallest unit of processing that can be performed within an operating system. In Grooper, threads are allocated for processing by Activity Processing services.

One thread can perform one "task" in Grooper. This allows for concurrent processing of multiple tasks. For example, if your system has 8 threads available, and the Recognize activity is set to the Page level Scope, the activity will run on 8 pages at a time. If your system only has 2 threads available, only 2 pages will be processed. If you have 64 threads, 64 pages will be processed at a time.

You can control how many threads are used to process an Activity using Processing Queues and the Activity Processing service, following these general steps:

  1. Create a new Processing Queue
  2. Assign it to a step in a Batch Process using its Queue Name property.
  3. Create an Activity Processing Grooper Service from Grooper Config.
  4. When configuring the Activity Processing service, select the Processing Queue using the Queue Name property.
  5. Specify how many threads you want to run using the Number of Threads property.