Socket and Thread Question
-
I have a Server, and several Client. a meth receive data from client. then store these data in global variable temporary then deal. e.g. public void ReceiveMethod(object data) { //maybe Multiple client at the same time. DealData(data); } public void DealData(object data) { //some values will store in global variable temporary. //because Multiple client Send data,so the global variable's value is mistake. like mult-Thread without synchrony or lock. //if this is Multiple Thread deal, I understand it. //but I dont execute thread or asynchronization obvious. //is Mult-Thread here? }
-
I have a Server, and several Client. a meth receive data from client. then store these data in global variable temporary then deal. e.g. public void ReceiveMethod(object data) { //maybe Multiple client at the same time. DealData(data); } public void DealData(object data) { //some values will store in global variable temporary. //because Multiple client Send data,so the global variable's value is mistake. like mult-Thread without synchrony or lock. //if this is Multiple Thread deal, I understand it. //but I dont execute thread or asynchronization obvious. //is Mult-Thread here? }
What is your Question??, I am not able to Understand your Problem.... :confused::confused::confused::confused:
Rajesh B --> A Poor Workman Blames His Tools <--
-
What is your Question??, I am not able to Understand your Problem.... :confused::confused::confused::confused:
Rajesh B --> A Poor Workman Blames His Tools <--