Sync. objects

This is a discussion on Sync. objects within the Windows Programming forums, part of the Platform Specific Boards category; Hey guys, I've been looking over some various synchronization objects, and I'm having some difficulties distinguishing them. As far as ...

  1. #1
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879

    Sync. objects

    Hey guys, I've been looking over some various synchronization objects, and I'm having some difficulties distinguishing them. As far as I can see:

    Mutex: Get ownership with WaitFor(xxx)Object(s)(), do something with the data in question, release with ReleaseMutex() or something along those lines.

    Semaphore: Get ownership with WaitFor(xxx)Object(s)(), do something with the data in question, release with ReleaseSemaphore() or something along those lines

    Critical Section: Get ownership with EnterCriticalSection(), do someting with the data in question, release with ExitCriticalSection().

    What's the essential difference between the three, or are they readily interchangeable??
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,643

  3. #3
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Ok, thanks alot. The comparison chart was especially useful
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. most efficient way to write filestream objects?
    By darsunt in forum C++ Programming
    Replies: 3
    Last Post: 01-26-2009, 04:17 PM
  2. Replies: 60
    Last Post: 12-20-2005, 10:36 PM
  3. Question about cout an stack object?
    By joenching in forum C++ Programming
    Replies: 8
    Last Post: 05-08-2005, 10:10 PM
  4. chain of objects within pop framework help needed
    By Davey in forum C++ Programming
    Replies: 0
    Last Post: 04-15-2004, 10:01 AM
  5. array of objects?
    By *~*~*~* in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 05:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21