Title says it all, I need to only allow one instance of my C program to be run. How can I accomplish this?
You can use shared memory for this purpose. Shared memory is an OS-level mechanism.
You can use the shared memory to store the specific number of instances your app is allowed to run.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.