-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Race condition in the example #12721
Copy link
Copy link
Open
Labels
area-System.Threadingneeds-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownersAn area label is needed to ensure this gets routed to the appropriate area ownersuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Metadata
Metadata
Assignees
Labels
area-System.Threadingneeds-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownersAn area label is needed to ensure this gets routed to the appropriate area ownersuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Type
Fields
Give feedbackNo fields configured for issues without a type.
Type of issue
Race Condition
Description
in this part of the code:
The return value of
Interlocked.Addshould have been used inThread.Sleep(1000 + padding)instead of direct usage ofpadding.Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.threading.semaphoreslim?view=net-10.0
Content source URL
https://github.com/dotnet/dotnet-api-docs-temp/blob/live/xml/System.Threading/SemaphoreSlim.xml
Document Version Independent Id
00dfa695-b15e-171a-bb3f-6406d5251394
Platform Id
3555abfc-a4c2-7751-ffba-f0547432065b
Article author
@dotnet-bot