Is ghost multi-threaded?

49 views
Skip to first unread message

Linas Vepstas

unread,
Feb 26, 2019, 2:53:57 PM2/26/19
to opencog
Quick, but maybe hard question: is ghost multi-threaded?

Specifically, does ghost ever run several BindLinks or GetLinks in parallel, in different threads?  (That's the important question I want to know about)   How about PLN, URE or pattern miner?

If there is multi-threading, are you using ParallelLink, JoinLink, or are you using roll-your-own home-made threading?

I want to make some design changes, but do not want to mess up current users/systems. https://github.com/opencog/atomspace/issues/1502

-- Linas

--
cassette tapes - analog TV - film cameras - you

amebel@hr

unread,
Feb 26, 2019, 10:18:44 PM2/26/19
to opencog
Ghost uses openpsi loops. These are atomspace recursive calls running in a scheme thread. 

Linas Vepstas

unread,
Feb 26, 2019, 11:27:06 PM2/26/19
to opencog
On Tue, Feb 26, 2019 at 9:18 PM amebel@hr <am...@hansonrobotics.com> wrote:
Ghost uses openpsi loops. These are atomspace recursive calls running in a scheme thread. 

But is this one thread. or more than one thread? (I'm not asking about any threads that you might now know about. There are a few, in the logger, in the persistence backend; I'm not worried about those.)

--linas

On Wednesday, February 27, 2019 at 3:53:57 AM UTC+8, linas wrote:
Quick, but maybe hard question: is ghost multi-threaded?

Specifically, does ghost ever run several BindLinks or GetLinks in parallel, in different threads?  (That's the important question I want to know about)   How about PLN, URE or pattern miner?

If there is multi-threading, are you using ParallelLink, JoinLink, or are you using roll-your-own home-made threading?

I want to make some design changes, but do not want to mess up current users/systems. https://github.com/opencog/atomspace/issues/1502

-- Linas

--
cassette tapes - analog TV - film cameras - you

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/34eff1a1-2e28-400f-99dd-e3efbde4065d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leung Man Hin

unread,
Feb 26, 2019, 11:34:11 PM2/26/19
to ope...@googlegroups.com
Should be one thread, there are no BindLinks/GetLinks that run in parallel.

Linas Vepstas

unread,
Feb 26, 2019, 11:39:50 PM2/26/19
to opencog
OK. FYI, if you ever wanted to, you can run them in parallel; always could. I'm currently tweaking things to make this easier. (The suggested way would be to use JoinLink. Or ParallelLink. and if this is too complicated, don't bother, unless you've got some kind of responsiveness issue or something.

--linas


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages