Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to use waiting function with thread?

user-image
Question added by مؤيد احمد محمد غالية , Android Developer , APPITS
Date Posted: 2014/08/02
syed bilal
by syed bilal , LucidLane

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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.