Firstly, the definition and characters of blocking mode and non-blocking mode in socket communication areintroduced, and the question of wakening up a synchronic blocking thread is proposed. Then, a typical blocking s...Firstly, the definition and characters of blocking mode and non-blocking mode in socket communication areintroduced, and the question of wakening up a synchronic blocking thread is proposed. Then, a typical blocking sock-et communication within mobile stock operations is given, and a method based on exception detecting to waken upsynchronic blocking threads is proposed. Additionally, a phenomenon of vibrating is also analyzed and solved. Andlastly, a conclusion is given.展开更多
文摘Firstly, the definition and characters of blocking mode and non-blocking mode in socket communication areintroduced, and the question of wakening up a synchronic blocking thread is proposed. Then, a typical blocking sock-et communication within mobile stock operations is given, and a method based on exception detecting to waken upsynchronic blocking threads is proposed. Additionally, a phenomenon of vibrating is also analyzed and solved. Andlastly, a conclusion is given.