Multi-threading when using swi prolog as embeded engine

Hi,
@freedafeng can you please share a few lines of code? I am also trying to modiy the prolog.py file to not to get nested query error. Which lines did you commented/changed? I have been trying to solve this problem for a few days. This is very urgent to me. I would appreciate if you can help. Many thanks in advance…