![]() ![]() ![]() For example : Let's say if we run a divide function with random numbers in a multi-threaded environment since it is running in a multi-threaded environment there could be possibility that two threads are executing divide calculation same time using random numbers can create system.dividebyzeroexception error. If an object behaves abnormally in a multi-threaded environment then that thread is not thread safe. For more information threading click here and for thread pooling see here.īefore we talk about mutex, semaphore, monitor and semaphoreslim and their differences let's understand what is thread safety. ![]() Before reading this article I strongly suggest you to read our previous c-sharp articles on threading and types of threading and thread pooling. Hello Friends.! In this article document we will understand how to work on multi-thread environment using mutex, semaphore, monitor and semaphoreslim. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |