Add stack overflow monitor

And define some thread’s stack size