Thread (Concept): Difference between revisions

From Grooper Wiki
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 9: Line 9:
# When configuring the '''Activity Processing''' service, select the '''Processing Queue''' using the '''''Queue Name''''' property.
# 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.
# Specify how many threads you want to run using the '''''Number of Threads''''' property.
== Glossary ==
<u><big>'''Activity Processing'''</big></u>: {{#lst:Glossary|Activity Processing Concept}}
<u><big>'''Activity Processing'''</big></u>: {{#lst:Glossary|Activity Processing Service}}
<u><big>'''Activity'''</big></u>: {{#lst:Glossary|Activity}}
<u><big>'''Batch Process'''</big></u>: {{#lst:Glossary|Batch Process}}
<u><big>'''Grooper Service'''</big></u>: {{#lst:Glossary|Grooper Service}}
<u><big>'''Processing Queue'''</big></u>: {{#lst:Glossary|Processing Queue}}
<u><big>'''Recognize'''</big></u>: {{#lst:Glossary|Recognize}}
<u><big>'''Scope'''</big></u>: {{#lst:Glossary|Scope}}
<u><big>'''Service'''</big></u>: {{#lst:Glossary|Service}}
<u><big>'''Thread'''</big></u>: {{#lst:Glossary|Thread}}

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.