Link to home
Start Free TrialLog in
Avatar of chaitu chaitu
chaitu chaituFlag for India

asked on

what is difference between join() and yield() ?

what is difference between join() and yield() ?


yield() is used when we want to give otherthread of the same priority access to run then we use yield method.

then what is join() method do.

Avatar of gen718
gen718

Join blocks the current thread until the thread you issued the join on dies.
ASKER CERTIFIED SOLUTION
Avatar of vikraman_b
vikraman_b

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial