implementing the isMultiThreaded method in the InterProlog driver engine