Multi-threading and avoiding deadlocks via Timing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • puzzlecracker

    #1

    Multi-threading and avoiding deadlocks via Timing

    There is a common way to deal with deadlock using timeouts to obtain
    multiple locks (In java, there is a tryLock for that). I wonder about
    common ways to avoid deadlock prevalent in CSharp. Is there tryLock.
    What are the tools .NET provides to deal with them.

    I am designing an application where I have a lot of distinct, yet
    cooperative, components interacting with each other in a atomic way.
    Hence I am looking for patterns and models that specifically
    target .NET platform to avoid deadlocks.


    Thanks
  • sloan

    #2
    Re: Multi-threading and avoiding deadlocks via Timing

    I would read up on this very good resource:





    "puzzlecrac ker" <ironsel2000@gm ail.comwrote in message
    news:74d62c8c-1539-4410-bf9b-0f69b99c30c1@n1 g2000prb.google groups.com...
    There is a common way to deal with deadlock using timeouts to obtain
    multiple locks (In java, there is a tryLock for that). I wonder about
    common ways to avoid deadlock prevalent in CSharp. Is there tryLock.
    What are the tools .NET provides to deal with them.
    >
    I am designing an application where I have a lot of distinct, yet
    cooperative, components interacting with each other in a atomic way.
    Hence I am looking for patterns and models that specifically
    target .NET platform to avoid deadlocks.
    >
    >
    Thanks

    Comment

    Working...