I have two apps which use a static library. In this library a common resource is referred. My question is how can I synchronize the access to this resource so they can be thread safe ? By using RMutex probably. But when my seconds process try to enter the critical section, KERN-EXEC 0 is thrown. How can I find the mutex already created ?