Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
What is race condition in threading?
Maggi
14y
3.3k
0
Reply
Submit
Race Conditions
A
race condition
occurs when two threads access a shared variableat the same time. The first thread reads the variable, and the second thread reads the same value from the variable. Then the first thread andsecond thread perform their operations on the value, and they race to see which thread can write the value last to the shared variable. The value of the thread that writes its value last is preserved, because thethread is writing over the value that the previous thread wrote
Maggi
14y
0
Message