Hi @Nazza,
I don't have such in-depth knowledge of application pool, processes and threads...
The Application Pool contains one Worker Process by default. You can configure it to multiple Worker Processes to enable Web Garden. Each Worker Process can manage multiple threads.
You can assign multiple sites to the same application pool, and they will all run under the same process, but they will run under different "app domains" which separate the code for the different sites.
Can I use mutex?
As mentioned by other community members, if your environment is a single server, just use lock or mutex can implement your needs, otherwise you may need distributed locking to make it work.
Best Regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.