Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Socket and Thread Question

Socket and Thread Question

Scheduled Pinned Locked Moved C#
questionsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jason_mf
    wrote on last edited by
    #1

    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? }

    R 1 Reply Last reply
    0
    • J jason_mf

      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? }

      R Offline
      R Offline
      Rajesh Anuhya
      wrote on last edited by
      #2

      What is your Question??, I am not able to Understand your Problem.... :confused::confused::confused::confused:

      Rajesh B --> A Poor Workman Blames His Tools <--

      J 1 Reply Last reply
      0
      • R Rajesh Anuhya

        What is your Question??, I am not able to Understand your Problem.... :confused::confused::confused::confused:

        Rajesh B --> A Poor Workman Blames His Tools <--

        J Offline
        J Offline
        jason_mf
        wrote on last edited by
        #3

        Is the DealData Method a assistant Thread?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups