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. About AutoResetEvent, a simple question

About AutoResetEvent, a simple question

Scheduled Pinned Locked Moved C#
question
4 Posts 4 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 t1,t2,t3, 3 threads, and 1 AutoResetEvent(ar), Is ar able to synchronize the three threads?

    L R 2 Replies Last reply
    0
    • J jason_mf

      I have t1,t2,t3, 3 threads, and 1 AutoResetEvent(ar), Is ar able to synchronize the three threads?

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      what do you mean by "synchronize three threads"? could be many things, such as: have the starting thread wait for all of them to finish; have all of them to wait for a common event; etc. Whatever it is, the answer is: yes. The way to get it done will be different however. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      1 Reply Last reply
      0
      • J jason_mf

        I have t1,t2,t3, 3 threads, and 1 AutoResetEvent(ar), Is ar able to synchronize the three threads?

        R Offline
        R Offline
        RaviRanjanKr
        wrote on last edited by
        #3

        jason_mf wrote:

        Is ar able to synchronize the three threads?

        Yes ar able to synchronize the three threads. :)

        J 1 Reply Last reply
        0
        • R RaviRanjanKr

          jason_mf wrote:

          Is ar able to synchronize the three threads?

          Yes ar able to synchronize the three threads. :)

          J Offline
          J Offline
          John Kenedy S Kom
          wrote on last edited by
          #4

          i think synchronizing itself has a lot of meaning... like is all 3 threads running together? or is it waiting for autoresetevent set method, and which thread is waiting for which thread? at foldersync i recently create, i use 3 autoresetevent to control 3 threads.... L :doh:

          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