 /**  * This function creates a new thread.  *  * The function is responsible for allocating the stack and setting  * up the user context appropriately. The newly created thread  * starts running the threadfunc function when it starts. The  * threadname is stored in the TCB and is printed for info   * purposes The newly created thread is in the RUNNABLE  * state when inserted into the system. It is added to the run queue.  * @return the ID of the newly created thread  * @param *threadfunc() function to be called on context switch  * @param stacksize size of stack to be allocated to  */ int mythread_create(char *threadName, void (*threadfunc)(), int stacksize)