SO users,
I have 3 threads running simultaneously at any given time, trouble is after thread 1 tries to connect to a server by passing a username to it thread 2 is being invoked and by the time its thread 1’s turn the server closes its connection on the code.
Is there anywhere I can implement sending username and password simultaneously with out threads interrupting each other at this time?
Thx!,
Nidhi
I very much doubt that it’s genuinely thread contention which is the problem here.
Threads timeslice very quickly, and the server would have to have a ridiculously short timeout for your diagnosis to be correct.
My guess is there’s something different wrong with your code, but we can’t really tell what it is without seeing some code.