public TaskProcessor(CancellationToken cts) { _taskQueue = TaskQueue.GetInstance(); _thread = new Thread(Execute); _cancellationToken = cts; }