I use the .Net Mutex class to block parts of my application through threads. I had problems with blocking, and it would be very useful if I could find out the name of the thread that currently has the block.
Is there an easy way to do this?
You cannot, Mutex is a wrapper around your own Windows descriptor. Windows obfuscates the descriptor values ββso that no one looks into the internal structure of the kernel.
. ManagedId Name , . , , . VS2010 Ultimate Concurrency Visualizer.
Mutux. , , , . WaitOne ReleaseMutex Mutex, - , .
Mutux
WaitOne
ReleaseMutex
Mutex
Source: https://habr.com/ru/post/1773094/More articles:Can I use variables in a template in Regex (C #) - c #Need help with a timer - cjQuery Π²ΠΎΠΏΡΠΎΡ ΠΈΠ· Π΄Π²ΡΡ ΡΠ°ΡΡΠ΅ΠΉ - ΠΏΡΠΈΠ²ΡΠ·ΠΊΠ° ΠΊ ΠΌΠΈΠΌΠΈΡΠ΅ΡΠΊΠΎΠΉ Π²ΠΊΠ»Π°Π΄ΠΊΠ΅ ΠΈ ΡΠΎΠ±ΡΡΠΈΠ΅ ΠΏΡΠΈΠ²ΡΠ·ΠΊΠΈ ΠΏΡΠΈΠ²ΡΠ·ΠΊΠΈ - jqueryMySQL 6.3.5 Connector with .NET 3.5 - mysqlΠΡΠΎΠ³ΡΠ°ΠΌΠΌΠ½Π°Ρ Π½Π°ΡΡΡΠΎΠΉΠΊΠ° VPN - cocoaConsumer boot sites - performanceHow to check if src script matches, then reassign src - javascriptWhat is the best way to provide a NULL option for the ownTo field in CakePHP 1.3? - cakephpThe onReceive () broadcast receiver was never called - Android - androidImage of background image of wpf button - wpfAll Articles