Phase 1 Language Basics + Advanced _1-3-Java language senior _05- wake-up mechanism _4_Object class wait and notifyAll method with parametric method anomalies and multiple threads wait _ Section 4





Put a buy buns code to take over. Not the boss of threaded code

to automatically execute the subsequent code five seconds

and then copy the customer code is divided into customer 1 and 2




nortify only wake a thread.



You can only wake up one thread




two threads are awakened






 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11261273.html