I've been thinking on what consequences would arise on Hierarchical task network planner if it's used with Multi-threading
HTN: http://www.gameaipro.com/GameAIPro/GameAIPro_Chapter12_Exploring_HTN_Planners_through_Example.pdf
So far my thoughts are the following
Pros:
- Planners can find the list of tasks faster using multithreading
Cons:
- When changing the world state, it needs to lock the variable so that race condition would not happen.
I've tried google around, but no luck in finding HTN planners being used in a multicore engine.
Please let me know if there's an efficient way to do this.