# Multi-threading when using swi prolog as embeded engine

**URL:** <https://swi-prolog.discourse.group/t/multi-threading-when-using-swi-prolog-as-embeded-engine/2085>\
**Category:** Help!\
**Tags:** how-to\
**Created:** [March 31, 2020, 10:12pm UTC](https://swi-prolog.discourse.group/t/multi-threading-when-using-swi-prolog-as-embeded-engine/2085 "2020-03-31T22:12:36Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![ferdasonmez](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/ferdasonmez/32/3578_2.png) [@ferdasonmez](https://swi-prolog.discourse.group/u/ferdasonmez)\
**Post date:** [June 22, 2021, 8:44am UTC](https://swi-prolog.discourse.group/t/multi-threading-when-using-swi-prolog-as-embeded-engine/2085/10 "2021-06-22T08:44:57Z")

</div>

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…

---

_[View the full topic](https://swi-prolog.discourse.group/t/multi-threading-when-using-swi-prolog-as-embeded-engine/2085)._
