Hi All,


I have 3 threads called T1 , T2 and T3 and also i have 3 daemon threads like dt1, dt2 and dt3.

I want to (assign) provide a service dt1 to thread T1 , dt2 to thread T2 and dt3 to thread T3. when threads T1,T2 and T3 complete their runnable task it's related daemon thread also got closed internally.

Can any one please tell me how to do it in java using thread daemon concept?