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. multiple asynchronous calls

multiple asynchronous calls

Scheduled Pinned Locked Moved Visual Basic
questionsysadmindata-structuresperformancehelp
1 Posts 1 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

    hi guys can you help me with this one... I have a loop that calls on an asynchronous method call with callback. obviously, separate background worker threads from the thread pool will be assigned for each method call to manage the execution in parallel path. but i do worry on a number of things: 1. since the asynchronous method call is non-blocking then members of my method is not thread-safe (yaiks!) 2. if i lock the method using MethodImplAttribute or locking variants (synclock, monitor, mutex, etc...) then my asynchronous calls become useless (threads on-queue), i myt as well go back to synchronous calls. Questions: 1. Are asynchronous calls not thread-safe and non-blocking as i guess? 2. how can i execute thread-safe multiple asynchrounous method calls? what i mean is that each call to the single method by each separate threads should have its own instances/values. different threads should not interfere by altering the values set by other threads running in-parallel. in other words its like giving each thread a segment in the memory where to put its own private transaction with the method being called (private session). 3. are methods of remotable objects (methods of proxies in remoting) activated on the server on Singleton mode thread-safe? how does the remotable object handles simultaneous request from multiple asynchronous calls? i bet most of you have encountered the same dilemma. tnx a lot!

    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