Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:15:31+00:00 2026-06-05T17:15:31+00:00

Firstly, is there a command for getting help and parameters for each sos command

  • 0

Firstly, is there a command for getting help and parameters for each sos command in windbg?

Secondly, I’d like to understand !syncblk output

Index SyncBlock MonitorHeld Recursion Owning Thread Info  SyncBlock Owner
  201 05b9493c          979         1 05bc1040   bcc  45   022f3490 System.Collections.ArrayList
 2875 05b4c914            1         1 17b99e10  1af8 290   024862d8 MyClass
 2945 05b4b66c            1         1 17d1a290  12c0 752   02482940 MyClass

MonitorHeld shows # of monitor held by the synblk. 1 for write and 2 for read, but what does the rest of column means?

Say I have a C# code

MyClass MyObj;
MyObj = new MyClass();

Now if I do

lock (MyObj)
{
}

Will the syncblk owner column show “MyClass” ?
Similarly when I run this !SyncBlk command, what exactly is it showing me? Is it showing me the number of lock() and Monitor.Enter and Mutex() and other locking mechanisms?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:15:32+00:00Added an answer on June 5, 2026 at 5:15 pm

    To get help for the SOS commands type !help or !sos.help. To get help on specific commands type !help <command>. The help texts for SOS are also available online. The online version gives you an overview of the command. For additional details use !help syncblk.

    The output of !syncblk shows you the thread id (header #1 in the output below), the object and the type of the object used to lock (header #2).

                                          +-------#1-------+  +-----#2------+
    Index SyncBlock MonitorHeld Recursion Owning Thread Info  SyncBlock Owner
      201 05b9493c          979         1 05bc1040   bcc  45   022f3490 System.Collections.ArrayList
     2875 05b4c914            1         1 17b99e10  1af8 290   024862d8 MyClass
     2945 05b4b66c            1         1 17d1a290  12c0 752   02482940 MyClass
    

    1) First value is thread object, second is native thread id and last is WinDbg thread id.

    2) First value is object used to lock on and second value is the type of this object.

    !syncblk only covers the internal .NET locks, so Mutex (which is a kernel object) is not covered here.

    In your example the thread id of the code running the lock statement will show up along with the address MyObj points to and the type MyClass.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, there have some tag links in my main page. click each one, post
Firstly, why doesn't Dictionary<TKey, TValue> support a single null key? Secondly, is there an
Firstly, I suck at XSLT. Secondly, I know there are several articles on how
Firstly I know that there are many question and solutions to correct thread marshalling
Firstly, I was wondering if there was some kind of built in function that
This is my first dip into HTML5, firstly is there a special way to
This is a two part question; firstly, does anyone out there have some insight
Firstly, there are 3 separate images. A chick, the word 'delivery' and 'foodstant' I
Firstly, this is for a class so there are limitations on what we can
There are a couple of things about Objective-C that are confusing to me: Firstly,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.