Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to use waiting function with thread?

user-image
Question ajoutée par مؤيد احمد محمد غالية , Android Developer , APPITS
Date de publication: 2014/08/02
syed bilal
par syed bilal , Senior Software Engineer , Symantec

lets asume you have a variable of thread in java say it "ThreaD"

ThreaD.start();

right after that write

While(Thread/isAlive());

this will end up in a lopp that rung untill thread is running

refference http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#isAlive()

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?