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. Web Development
  3. ASP.NET
  4. Advise about implementing roulette like chat

Advise about implementing roulette like chat

Scheduled Pinned Locked Moved ASP.NET
questionloungecsharpasp-netdatabase
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.
  • H Offline
    H Offline
    Haim Nachum
    wrote on last edited by
    #1

    Hi, Im implementing a roulette like chat in asp.net and i having some issues about the logic. The basic flow of the application should be : 1. user signed in to the site 2. user requesting someone to chat to 3. the request is sent to the server and the server draws a random user to chat to 4. the two user start communicating, The problem i seem to have is that when a user request is reaching the server and the server tries to draw a new user to chat to (lets say from a DB) , how i synchronize that user with the drawn one, because its a multi-thread environment the user that i drew may also did the same function and tried to drew a user to. So i will face a problem that the first user assigned to himself the other user and the other user may assigned to himself other user as well. Is this a common problem? and if so what is the common solutions? thank you.

    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