Within object oriented, an object behaves as if a human behaving
so assume you want to sleep and you don't want to trigger an alarm as it annoys you, so you ask your brother to awake you.
simple its you are a thread, when telling your brother that you will get asleep "brother.wait( )", an when he awakes you "brother.notify( )".
so assume you want to sleep and you don't want to trigger an alarm as it annoys you, so you ask your brother to awake you.
simple its you are a thread, when telling your brother that you will get asleep "brother.wait( )", an when he awakes you "brother.notify( )".
Comments
Post a Comment