forked from pradeepvemulakonda/Snomed
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_threads.py
28 lines (21 loc) · 909 Bytes
/
test_threads.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from neo4j.snomed_concept_processor import SnomedConceptProcessor
from neo4j.snomed_concept_generator import SnomedConceptGenerator
from neo4j.snomed_concept_synonym_generator import SnomedConceptSynonymGenerator
from neo4j.snomed_concept_synonym_processor import SnomedConceptSynonymProcessor
from neo4j.snomed_relation_generator import SnomedRelationGenerator
from neo4j.snomed_relation_processor import SnomedRelationProcessor
from worker.scheduling_thread_executor import SchedulingThreadExecutor
from worker.thread_executor import ThreadExecutor
__author__ = 'pradeepv'
cte = ThreadExecutor(5)
sg = SnomedConceptGenerator()
sp = SnomedConceptProcessor()
cte.execute(sg, sp)
ste = ThreadExecutor(5)
sg = SnomedConceptSynonymGenerator()
sp = SnomedConceptSynonymProcessor()
ste.execute(sg, sp)
rte = ThreadExecutor(1)
sg = SnomedRelationGenerator()
sp = SnomedRelationProcessor()
rte.execute(sg, sp)