Avoid user from opening an app twice

Hi. I need to avoid users from opening the same aplication twice. Wich Is the easyest way to do that? I have a hole system with a tree menú.
Thank you