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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Threading in Remoting

Threading in Remoting

Scheduled Pinned Locked Moved Visual Basic
sysadminquestion
2 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.
  • N Offline
    N Offline
    normanordas
    wrote on last edited by
    #1

    I have one method (GetRow) on the server (remotable object) that caters hundreds of simultaneous clients requests. How does the remotable object handles all this requests at the same time? Are they queued until one request is done or threads are created for each request? Are methods defined in a remotable object SYNCHRONIZED? Do threads process the same code inside GetRow method at tha same time? I was thinking that if the latter is the case then this is dangerous as data inside the method are arbitrarily changed.

    D 1 Reply Last reply
    0
    • N normanordas

      I have one method (GetRow) on the server (remotable object) that caters hundreds of simultaneous clients requests. How does the remotable object handles all this requests at the same time? Are they queued until one request is done or threads are created for each request? Are methods defined in a remotable object SYNCHRONIZED? Do threads process the same code inside GetRow method at tha same time? I was thinking that if the latter is the case then this is dangerous as data inside the method are arbitrarily changed.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Unless your remote object is setup using the Singleton pattern, you're creating one copy of the object for each instance of your application. Normally, all your instances are running the same copy of the code, but each has their own data. If multiple instances run the same method at the same time, they are running the same code, but against different data. The processor and operating system handle all the context switching between data sets transparently. There is no way that two instances running the same method at the same time can corrupt each others data. Normally, you don't have to worry about it at all. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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