thread.c created, only left to change the esp and eip and check if it works