C# : In C# would it be better to use Queue.Synchronized or lock() for thread safety?

Channel:
Subscribers:
76,400
Published on ● Video Link: https://www.youtube.com/watch?v=yfNBqWUE3Dk



Duration: 1:34
1 views
0


C# : In C# would it be better to use Queue.Synchronized or lock() for thread safety?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

Here's a secret feature that I promised to disclose to you.
This is a YouTube's feature which works on Desktop.
First, Make sure this video is playing.
Next, enter the letters 'awesome' on your keyboard.
The progress bar on YouTube will be altered to a flashing rainbow.

A little intro about me,
Hi there, I go by the name of Delphi.
Let me help you with your questions.
C# : In C# would it be better to use Queue.Synchronized or lock() for thread safety?
If you have more specific queries, please feel free to reach out through comments or chat.
If you have knowledge to contribute or an answer to provide, we encourage you to comment below.
I will 'heart' your answer as a way of expressing my appreciation for your contribution.
thread : for Queue.Synchronized safety? In would be C# it better or lock() use C# to