views:

9

answers:

0

In my application, have 3 threads:
1. main
2. network send
3. network receive
Because the application need keep-alive the session, so thread #2 need send a keep-alive packet to server when idle more than 1 minute.

If the screen is on all are ok, but under screen off, thread #2 like blocking somewhere, and if I plug-in the USB cable for debug, it will like screen on (all are ok).
I try adjust all threads priority, but no any improvement.