improve threads:
- add thread state
- add PoC wakeup
- add queue max size