-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a parallelizable query #2117
Conversation
; ------------- | ||
; Define a simple query. It looks for the funny stuff, and attaches | ||
; the result to an AnchorNode | ||
(define query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this query going to run in separate thread?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes ... the ParallelLink
creates three threads, running that query in one of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at bottom:
(define threads
(Parallel
(SequentialAnd
(prtime "step one A")
(True query)
(True (Sleep (Number 4)))
... etc.
The
QueryLink
is (almost) exactly like theBindLink
but it can be run in parallel threads.