initialise thread by using a fake implementation of java.lang.Thread