addd external cycle, to add thread

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>