Added boolean to indicate whether the NodeThreads object is a thread pool vs web-worker.