i making skype program. have 2 calls going mean have 4 threads going. have 2 threads accept users , 2 more threads handle users messages etc... made if there less 2 users in call ends how end 1 of accept threads when there 2 running , how tell 1 of 2 stop. there way can use index number of thread stop it?
the correct way store threads in variables (or array) , use interrupts signal 1 thread should stop. thread you're signalling needs handle event.
Comments
Post a Comment