I am in a situation where I need to read the binary search tree (BST) inside the signal handler (the signal handler is SIGSEGV , which, according to my knowledge, refers to the stream base). BST can be modified by other threads in the application.
Now, since the signal handler cannot use semaphores, mutexes, etc., and therefore cannot access shared data, how to solve this problem? Please note that my application is multithreaded and runs on a multi-core system.
c linux mutex signals signal-handling
Metallicpriest
source share