fake thread: limit max thread number 5