Thread Sanitizer in iOS

Save

Before starting with Thread Sanitizer. We need to know the concept of a data race.

A data race is accessing the same address from two different threads at the same time.

This is also known as Race condition.

If the above condition occurs there will different types of errors occur Like crashes etc.

Simulate

For better understanding, we need to simulate a race condition.

Please check the below image to enable the thread simulator in project

For example in the view controller without a data race condition

After adding race condition and without ThreadSanitizer

Example in which data race condition occurs and thread sanitizer enabled

Conclusion

We can simply prevent our application from crashed-like conditions by using the above concept in the application.

I hope this blog helps you to understand the functionality of Thread Sanitizer concept.

Thanks for Reading !!

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.

Vincenzo Carrano

Vincenzo Carrano

Administrator, Segshop

Talk to Sales

Global

Live Chat
Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home