Skip to main content
Syntax
Source Link
Martin Wickman
  • 13.4k
  • 3
  • 33
  • 66

I have written a server/client program in which I am using 2 threads :

One to recieve data continously and
Other to send data as the user writes it on screen
  • One to recieve data continously and
  • Other to send data as the user writes it on screen

Problem:

    I have created the threads but durung execution ,the control gets stuck in 
    the recieving thread having the infinite loop to recieve data and never goes 
    to the sending thread.

I have created the threads but durung execution ,the control gets stuck in the recieving thread having the infinite loop to recieve data and never goes to the sending thread.

Please tell me if there is any solution to the problem.

I have written a server/client program in which I am using 2 threads :

One to recieve data continously and
Other to send data as the user writes it on screen

Problem:

    I have created the threads but durung execution ,the control gets stuck in 
    the recieving thread having the infinite loop to recieve data and never goes 
    to the sending thread.

Please tell me if there is any solution to the problem.

I have written a server/client program in which I am using 2 threads :

  • One to recieve data continously and
  • Other to send data as the user writes it on screen

Problem:

I have created the threads but durung execution ,the control gets stuck in the recieving thread having the infinite loop to recieve data and never goes to the sending thread.

Please tell me if there is any solution to the problem.

Source Link

Multi-threaded server

I have written a server/client program in which I am using 2 threads :

One to recieve data continously and
Other to send data as the user writes it on screen

Problem:

    I have created the threads but durung execution ,the control gets stuck in 
    the recieving thread having the infinite loop to recieve data and never goes 
    to the sending thread.

Please tell me if there is any solution to the problem.