Thread (Concept): Difference between revisions

From Grooper Wiki
No edit summary
No edit summary
Line 5: Line 5:
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.
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 the '''[[Processing Queue]]''' object and installing the '''[[Activity Processing]]''' service in [[Grooper Config]].
You can control how many threads are used to process an '''Activity''' using '''Processing Queues''' and the '''Activity Processing''' service, following these general steps:
# Create a new '''[[Processing Queue]]'''
# Assign it to a step in a '''Batch Process''' using its '''''Queue Name''''' property.
# Create an '''[[Activity Processing]]''' Grooper Service from [[Grooper Config]].
# When configuring the '''Activity Processing''' service, select the '''Processing Queue''' using the '''''Queue Name''''' property.
# Specify how many threads you want to run using the '''''Number of Threads''''' property.


[[Category:Articles]]
[[Category:Articles]]

Revision as of 12:08, 3 January 2024

In computer science, a thread is the smallest unit of processing that can be performed within an operating system.

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.