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 / C++ / MFC
  4. Synchronisation objects. - When to use what

Synchronisation objects. - When to use what

Scheduled Pinned Locked Moved C / C++ / MFC
architecturediscussion
5 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.
  • S Offline
    S Offline
    Shiva Prasad
    wrote on last edited by
    #1

    Hi all, I have used some of the synch objects in my code. At times I tried using more that one for same purpose, and both works fine.. Many books, docs explain about the synch objects..But I couldn't find about the analysis of When to use what kind of sych objects in detail.. Can someone who has a solid understanding on this can share their thoughts on this..or can give some pointers on When to use what synch objects.. Thanks,

    S C B 3 Replies Last reply
    0
    • S Shiva Prasad

      Hi all, I have used some of the synch objects in my code. At times I tried using more that one for same purpose, and both works fine.. Many books, docs explain about the synch objects..But I couldn't find about the analysis of When to use what kind of sych objects in detail.. Can someone who has a solid understanding on this can share their thoughts on this..or can give some pointers on When to use what synch objects.. Thanks,

      S Offline
      S Offline
      sunit5
      wrote on last edited by
      #2

      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/synchronization_objects.asp

      S 1 Reply Last reply
      0
      • S sunit5

        http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/synchronization_objects.asp

        S Offline
        S Offline
        Shiva Prasad
        wrote on last edited by
        #3

        Thanks Anyway.. But this discusses what each synch object is.. I am looking for info on distinguistion between each and other object with respect to a sample situation.. Let me know if you have more info on this.. Thanks,

        1 Reply Last reply
        0
        • S Shiva Prasad

          Hi all, I have used some of the synch objects in my code. At times I tried using more that one for same purpose, and both works fine.. Many books, docs explain about the synch objects..But I couldn't find about the analysis of When to use what kind of sych objects in detail.. Can someone who has a solid understanding on this can share their thoughts on this..or can give some pointers on When to use what synch objects.. Thanks,

          C Offline
          C Offline
          cmk
          wrote on last edited by
          #4

          A general compare of all sync object types would take a bit of space ... and then likely be incomplete. Do you have specific cases ? e.g. critical section vs mutex in a situation where ... ...cmk Save the whales - collect the whole set

          1 Reply Last reply
          0
          • S Shiva Prasad

            Hi all, I have used some of the synch objects in my code. At times I tried using more that one for same purpose, and both works fine.. Many books, docs explain about the synch objects..But I couldn't find about the analysis of When to use what kind of sych objects in detail.. Can someone who has a solid understanding on this can share their thoughts on this..or can give some pointers on When to use what synch objects.. Thanks,

            B Offline
            B Offline
            Bob Ciora
            wrote on last edited by
            #5

            As cmk mentioned, you should list certain situations and scenarios. You mentioned that you've used different sync objects in the same situtation, and they all worked fine. What situation and which objects? Bob Ciora

            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