Adding the getRandomThreadId method to Processor, for allowing the creation of unnamed threads. Modifying the thread instruction.