add a produce command in thread.groovy to produce thread based on ids

add a produce command in thread.groovy to produce thread based on ids with completion of thread ids

Note: the ids provided as parameters for interrupt, stop and dump are not working in current version, that's why I've added this produce command following Julien's recommendation