You want to write a daemon application that consumes organizational data using Microsoft Graph and using Microsoft Identity Platform to acquire tokens. For details see Daemon apps scenario.
Using the code in #105805 with the newly added test.test_threading.ThreadTests.test_finalize_daemon_thread_hang test enabled you can reproduce this thread sanitizer crash as follows (I used clang 18): ...
The ability to execute code in parallel is crucial in a wide variety of scenarios. Concurrent programming is a key asset for web servers, producer/consumer models, batch number-crunching and pretty ...