Thread (Concept): Difference between revisions

From Grooper Wiki
Created page with "In computer science, a thread is the smallest unit of processing that can be performed within an operating system."
 
No edit summary
Tag: Manual revert
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In computer science, a thread is the smallest unit of processing that can be performed within an operating system.
<blockquote>{{#lst:Glossary|Thread}}</blockquote>
 
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:
# 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.

Latest revision as of 10:43, 22 November 2024

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.